From 69ce8616d5232a08ebb4ceac3fa3e9062d7245ff Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Tue, 6 Jun 2023 20:51:58 +0200 Subject: [PATCH] feat: custom message if backups failed --- src/server/process.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/process.rs b/src/server/process.rs index b5baae9..a9a9f45 100644 --- a/src/server/process.rs +++ b/src/server/process.rs @@ -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 }