Expose actual error message
This commit is contained in:
parent
523a1b95a4
commit
d943e387b1
|
@ -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"}`
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue