diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-10-29 01:29:56 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-10-29 01:29:56 -0400 |
commit | 00e90e7e7d3bdc2e35fea0fab2dc704326831bad (patch) | |
tree | 552e1a8a5082f58fd11c39e7991504d949203988 /src/error.rs | |
parent | 0a6cb355e1f53be7b53dc656875f2ebf29675086 (diff) | |
download | rbw-00e90e7e7d3bdc2e35fea0fab2dc704326831bad.tar.gz rbw-00e90e7e7d3bdc2e35fea0fab2dc704326831bad.zip |
support command line arguments in EDITOR/VISUAL
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 4 |
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, }, |