Don't eat error in return code #1

Open
opened 2022-10-24 00:52:29 +00:00 by tangent128 · 0 comments
Owner

main() always returns a 0 exit code, even if an error is encountered that takes down the service; systemd won't restart if Restart=on-failure in this case.

See

Lines 34 to 36 in 2b88d09
.unwrap_or_else(|err| {
error!("{}", err);
});

main() always returns a 0 exit code, even if an error is encountered that takes down the service; systemd won't restart if `Restart=on-failure` in this case. See https://gitea.tropi.us/tangent128/webmetro/src/commit/2b88d09d0f42c9ee7bc609480aa85ad7705bac2f/src/main.rs#L34-L36
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tangent128/webmetro#1
No description provided.