|
@ -29,7 +29,7 @@ fn main() -> Result<()> { |
|
|
break;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
Err(ShellError::NotFound(cmd)) => {
|
|
|
Err(ShellError::NotFound(cmd)) => {
|
|
|
println!("{}: command not found", cmd.get_program().to_string_lossy())
|
|
|
|
|
|
|
|
|
eprintln!("{}: command not found", cmd.get_program().to_string_lossy())
|
|
|
}
|
|
|
}
|
|
|
Err(ShellError::ExecuteFailure(msg)) => {
|
|
|
Err(ShellError::ExecuteFailure(msg)) => {
|
|
|
eprintln!("{}", msg)
|
|
|
eprintln!("{}", msg)
|
|
@ -39,7 +39,7 @@ fn main() -> Result<()> { |
|
|
break;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
Err(err) => {
|
|
|
Err(err) => {
|
|
|
println!("Error: {:?}", err);
|
|
|
|
|
|
|
|
|
eprintln!("Error: {:?}", err);
|
|
|
break;
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|