diff options
author | Blaž Hrastnik | 2021-08-20 04:42:17 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-20 04:42:17 +0000 |
commit | 38e932bd4c8b5ba105f7bd6c0c933c681b4df68a (patch) | |
tree | 991b3ef0f7e3b7b82f9b05a285301996ac99c89c /helix-term | |
parent | a76ec9a64e6c505ee0fdd5ee18e83390ac4a84ad (diff) |
minor: Nicer errors, std::io::Error provides a Display impl
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/commands.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index e7f482dd..9ec2c336 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1838,7 +1838,7 @@ mod cmd { let dir = args.first().context("target directory not provided")?; if let Err(e) = std::env::set_current_dir(dir) { - bail!("Couldn't change the current working directory: {:?}", e); + bail!("Couldn't change the current working directory: {}", e); } let cwd = std::env::current_dir().context("Couldn't get the new working directory")?; @@ -3399,7 +3399,7 @@ fn yank_main_selection_to_clipboard_impl( .clipboard_provider .set_contents(value.into_owned(), clipboard_type) { - bail!("Couldn't set system clipboard content: {:?}", e); + bail!("Couldn't set system clipboard content: {}", e); } editor.set_status("yanked main selection to system clipboard".to_owned()); |