1
0
Fork 0
mirror of synced 2024-07-04 22:11:23 +12:00

Expose actual error message

This commit is contained in:
adrinr 2023-04-03 12:00:06 +01:00
parent 523a1b95a4
commit d943e387b1
2 changed files with 9 additions and 3 deletions

View file

@ -41,7 +41,9 @@
scimEnabled = scimConfig?.config?.enabled
} catch (error) {
console.error(error)
notifications.error("Error fetching SCIM config")
notifications.error(
`Error fetching SCIM config - ${error?.message || "unknown error"}`
)
}
}
@ -49,7 +51,9 @@
try {
apiKey = await auth.fetchAPIKey()
} catch (err) {
notifications.error("Unable to fetch API key")
notifications.error(
`Unable to fetch API key - ${err?.message || "unknown error"}`
)
}
}

View file

@ -13,7 +13,9 @@
try {
await features.init()
} catch (error) {
notifications.error("Error fetching feature configs")
notifications.error(
`Error fetching feature configs - ${error?.message || "unknown error"}`
)
}
})
</script>