feat: custom message if backups failed
This commit is contained in:
parent
50cdd3115f
commit
69ce8616d5
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue