aboutsummaryrefslogtreecommitdiffhomepage
path: root/crates/shirabe/src/command/global_command.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/shirabe/src/command/global_command.rs')
-rw-r--r--crates/shirabe/src/command/global_command.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/shirabe/src/command/global_command.rs b/crates/shirabe/src/command/global_command.rs
index 78b6f3e6..df9798a3 100644
--- a/crates/shirabe/src/command/global_command.rs
+++ b/crates/shirabe/src/command/global_command.rs
@@ -90,8 +90,12 @@ impl GlobalCommand {
}
}
- chdir(&home).map_err(|_e| {
- RuntimeException::new(format!("Could not switch to home directory \"{}\"", home))
+ chdir(&home).map_err(|e| {
+ RuntimeException::with_code_and_previous(
+ format!("Could not switch to home directory \"{}\"", home),
+ 0,
+ Some(std::sync::Arc::new(e)),
+ )
})?;
if !quiet {