Skip to content

Commit ca9dd45

Browse files
author
Florian Guggi
committed
fix: Relax date utility fail to external error
1 parent a72c61e commit ca9dd45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scheduler/src/command/update_time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub fn update_time(
2121
fn set_system_time(s_since_epoch: i32) -> CommandResult {
2222
let exit_status = Command::new("date").arg("-s").arg(format!("@{s_since_epoch}")).status()?;
2323
if !exit_status.success() {
24-
return Err(CommandError::NonRecoverable(anyhow!("date utility failed")));
24+
return Err(CommandError::External(anyhow!("date utility failed with {:?}", exit_status)));
2525
}
2626

2727
Ok(())

0 commit comments

Comments
 (0)