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

incremental-backups
Jef Roosens 2023-06-06 20:51:58 +02:00
parent 50cdd3115f
commit 69ce8616d5
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
1 changed files with 5 additions and 1 deletions

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 // The server's save feature needs to be enabled again even if the archive failed to create
self.custom("save-on")?; 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 res
} }