show correct error and keep modal open

This commit is contained in:
Maurits Lourens 2022-03-08 11:15:02 +01:00
parent 7d8b80f4fe
commit 9a0c361ad0
1 changed files with 3 additions and 1 deletions

View File

@ -20,7 +20,9 @@
$goto(`./datasource/${resp._id}`)
notifications.success(`Datasource updated successfully.`)
} catch (err) {
notifications.error("Error saving datasource")
notifications.error(err?.message ?? "Error saving datasource")
// prevent the modal from closing
return false
}
}