From 46d5c58d95ce6e4ba2daf9e5e189a706ea97fa41 Mon Sep 17 00:00:00 2001 From: Peter Clement Date: Wed, 1 Feb 2023 14:43:31 +0000 Subject: [PATCH] disallow spaces in env var names --- .../builder/portal/settings/environment/index.svelte | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/pages/builder/portal/settings/environment/index.svelte b/packages/builder/src/pages/builder/portal/settings/environment/index.svelte index 6ffe261e31..3c170235e9 100644 --- a/packages/builder/src/pages/builder/portal/settings/environment/index.svelte +++ b/packages/builder/src/pages/builder/portal/settings/environment/index.svelte @@ -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 => {