Improve messaging
This commit is contained in:
parent
7f5ad8e229
commit
8546dd6c0c
|
@ -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)
|
||||
}
|
||||
},
|
||||
})
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue