aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.rs')
-rw-r--r--src/error.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs
index d584e53..8116de2 100644
--- a/src/error.rs
+++ b/src/error.rs
@@ -35,11 +35,13 @@ pub enum Error {
},
#[error(
- "failed to run editor {}: {res:?}",
+ "failed to run editor {} {}: {res:?}",
.editor.to_string_lossy(),
+ .args.iter().map(|s| s.to_string_lossy()).collect::<Vec<_>>().join(" ")
)]
FailedToRunEditor {
editor: std::path::PathBuf,
+ args: Vec<std::ffi::OsString>,
res: std::process::ExitStatus,
},