diff --git a/app/classes/web/routes/api/servers/server/backups/backup/index.py b/app/classes/web/routes/api/servers/server/backups/backup/index.py index b92e1e9f..9a4ecc30 100644 --- a/app/classes/web/routes/api/servers/server/backups/backup/index.py +++ b/app/classes/web/routes/api/servers/server/backups/backup/index.py @@ -72,9 +72,9 @@ class ApiServersServerBackupsBackupIndexHandler(BaseApiHandler): FileHelpers.del_file( os.path.join(backup_conf["backup_path"], data["filename"]) ) - except Exception: + except Exception as e: return self.finish_json( - 400, {"status": "error", "error": "NO BACKUP FOUND"} + 400, {"status": "error", "error": f"DELETE FAILED with error {e}"} ) self.controller.management.add_to_audit_log( auth_data[4]["user_id"],