fix error reporting if daemonize fails
This got broken in the move to anyhow
This commit is contained in:
1 parent
1c5538976d
commit
bf910397dd
1 file changed
+2
-2
+2
-2
@@ -524,10 +524,10 @@ fn run_terminal_gui(config: config::ConfigHandle, opts: &StartCommand) -> anyhow
|
||||
| DaemonizeError::LockPidfile(_)
|
||||
| DaemonizeError::ChownPidfile(_)
|
||||
| DaemonizeError::WritePid => {
|
||||
anyhow!("{} {}", err, config.daemon_options.pid_file().display());
|
||||
bail!("{} {}", err, config.daemon_options.pid_file().display());
|
||||
}
|
||||
DaemonizeError::ChangeDirectory => {
|
||||
anyhow!("{} {}", err, home_dir.display());
|
||||
bail!("{} {}", err, home_dir.display());
|
||||
}
|
||||
_ => return Err(err.into()),
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user