Update tremor-cli/src/job.rs
@@ -35,12 +35,8 @@ where
// use the current binary if `tremor` is used as an executable
// this can be overwritten by giving it a path
if name == "tremor" {
- env::current_exe().map_err(|e| {
- Error::from(format!(
- "Unable to find suitable `{}` binary on path: {}",
- name, e
- ))
- })
+ env::current_exe()
+ .map_err(|e| Error::from(format!("Unable to execute current tremor binary: {}", e)))
} else {
env::var_os("PATH")
.and_then(|paths| {
