dos-var: corrected error message

This commit is contained in:
Valerie Wolfe 2024-07-12 14:17:58 -04:00
parent 30159a43ae
commit e59907d81e
2 changed files with 3 additions and 3 deletions

View file

@ -6,8 +6,8 @@ pub fn not_found(target: &String) {
}
pub fn arg_count() {
eprintln!("dos-var: expects one argument");
pub fn missing_arg() {
eprintln!("dos-var: no argument found");
exit(2);
}

View file

@ -35,6 +35,6 @@ pub fn main() {
println!("{path}");
}
}
}
} else { error::missing_arg(); }
}