Improve messaging

This commit is contained in:
Adria Navarro 2025-03-19 18:05:09 +01:00
parent 7f5ad8e229
commit 8546dd6c0c
2 changed files with 6 additions and 2 deletions

View File

@ -29,7 +29,11 @@
await oauth2.delete(row.id)
notifications.success(`Config '${row.name}' deleted successfully`)
} catch (e: any) {
notifications.error("Error deleting config")
let message = "Error deleting config"
if (e.message) {
message += ` - ${e.message}`
}
notifications.error(message)
}
},
})

View File

@ -79,7 +79,7 @@
notifications.success("Settings saved.")
}
} catch (e: any) {
notifications.error(e.message)
notifications.error(`Failed to save config - ${e.message}`)
return keepOpen
}
}