dos-var: corrected error message
This commit is contained in:
parent
30159a43ae
commit
e59907d81e
2 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,6 +35,6 @@ pub fn main() {
|
|||
println!("{path}");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else { error::missing_arg(); }
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue