diff options
author | Jesse Luehrs <doy@tozt.net> | 2021-03-02 22:23:10 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2021-03-02 22:23:10 -0500 |
commit | 7e529362470125102f60354d6938154363c4e21d (patch) | |
tree | 3bfa9ed1ba4a1b71abc41d16ae673caa3a975197 /src/error.rs | |
parent | 604e09e6ae098350bffe18bde26e1c62f7e88a00 (diff) | |
download | rbw-7e529362470125102f60354d6938154363c4e21d.tar.gz rbw-7e529362470125102f60354d6938154363c4e21d.zip |
support VISUAL in preference to EDITOR
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/error.rs b/src/error.rs index e43084c..cd85c02 100644 --- a/src/error.rs +++ b/src/error.rs @@ -43,8 +43,15 @@ pub enum Error { #[snafu(display("invalid cipherstring: {}", reason))] InvalidCipherString { reason: String }, - #[snafu(display("invalid value for $EDITOR: {}", editor.to_string_lossy()))] - InvalidEditor { editor: std::ffi::OsString }, + #[snafu(display( + "invalid value for ${}: {}", + var, + editor.to_string_lossy() + ))] + InvalidEditor { + var: String, + editor: std::ffi::OsString, + }, #[snafu(display("invalid mac"))] InvalidMac, |