summaryrefslogtreecommitdiffstats
path: root/src/state/history/mod.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2021-12-25 22:43:11 -0500
committerJesse Luehrs <doy@tozt.net>2021-12-25 22:43:11 -0500
commita4a895c8aa24664ee0d0418115015efd10f483c4 (patch)
tree1108c72dcb6b4ffe72d3a76b0e250120c251e8ec /src/state/history/mod.rs
parenta142c3484e75341d3b1fe35959246969cc908f77 (diff)
downloadnbsh-a4a895c8aa24664ee0d0418115015efd10f483c4.tar.gz
nbsh-a4a895c8aa24664ee0d0418115015efd10f483c4.zip
error message consistency
Diffstat (limited to 'src/state/history/mod.rs')
-rw-r--r--src/state/history/mod.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/state/history/mod.rs b/src/state/history/mod.rs
index 7d0b38a..581dc58 100644
--- a/src/state/history/mod.rs
+++ b/src/state/history/mod.rs
@@ -651,12 +651,8 @@ async fn run_exe(
Err(e) => {
let mut entry = env.entry().await;
entry.vt.process(
- format!(
- "nbsh: failed to run {}: {}",
- exe.exe(),
- e.source().unwrap()
- )
- .as_bytes(),
+ format!("nbsh: {}: {}", e.source().unwrap(), exe.exe())
+ .as_bytes(),
);
return async_std::process::ExitStatus::from_raw(1 << 8);
}