disallow spaces in env var names

This commit is contained in:
Peter Clement 2023-02-01 14:43:31 +00:00
parent 6c6d9dc380
commit f238063303
1 changed files with 8 additions and 2 deletions

View File

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