properly return error values if a server error occurs

This commit is contained in:
2026-03-28 07:25:59 +00:00
parent 3636878bb7
commit 5788e1b493
3 changed files with 9 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ func HandleGETBackups(c *gin.Context) {
vm_path, err := common.ExtractVMPath(c)
if err != nil {
common.HandleNonFatalError(c, err)
return
}
backups, err := GetInstanceBackups(vm_path, auth)
@@ -57,6 +58,7 @@ func HandleGETBackupsFragment(c *gin.Context) {
vm_path, err := common.ExtractVMPath(c)
if err != nil {
common.HandleNonFatalError(c, err)
return
}
backups, err := GetInstanceBackups(vm_path, auth)