feat: custom message if backups failed
Some checks failed
ci/woodpecker/push/release unknown status
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/clippy Pipeline was successful
ci/woodpecker/push/build Pipeline was successful

This commit is contained in:
Jef Roosens 2023-06-06 20:51:58 +02:00
parent 50cdd3115f
commit 69ce8616d5
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB

View file

@ -93,7 +93,11 @@ impl ServerProcess {
// The server's save feature needs to be enabled again even if the archive failed to create
self.custom("save-on")?;
self.custom("say server backed up successfully")?;
if res.is_ok() {
self.custom("say server backed up successfully")?;
} else {
self.custom("an error occured while backing up the server")?;
}
res
}