disallow spaces in env var names

This commit is contained in:
Peter Clement 2023-02-01 14:43:31 +00:00
parent 434ac1ddb2
commit 46d5c58d95
1 changed files with 8 additions and 2 deletions

View File

@ -25,8 +25,14 @@
$: schema = buildSchema(noEncryptionKey) $: schema = buildSchema(noEncryptionKey)
onMount(async () => { onMount(async () => {
await environment.checkStatus() try {
await environment.loadVariables() await environment.checkStatus()
await environment.loadVariables()
} catch (error) {
notifications.error(
`Error loading environment variables: ${error.message}`
)
}
}) })
const buildSchema = noEncryptionKey => { const buildSchema = noEncryptionKey => {