feat: custom message if backups failed
parent
50cdd3115f
commit
69ce8616d5
|
@ -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")?;
|
||||||
|
|
||||||
|
if res.is_ok() {
|
||||||
self.custom("say server backed up successfully")?;
|
self.custom("say server backed up successfully")?;
|
||||||
|
} else {
|
||||||
|
self.custom("an error occured while backing up the server")?;
|
||||||
|
}
|
||||||
|
|
||||||
res
|
res
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue