From e385230a2b14938e8228bdce0a62f303ba974246 Mon Sep 17 00:00:00 2001 From: eyelidlessness Date: Wed, 11 Sep 2024 11:26:11 -0700 Subject: [PATCH] Log form loading error if one occurs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Please let’s not make it harder to debug when unexpected things happen --- packages/web-forms/src/demo/FormPreview.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/web-forms/src/demo/FormPreview.vue b/packages/web-forms/src/demo/FormPreview.vue index e2983407..0fb71881 100644 --- a/packages/web-forms/src/demo/FormPreview.vue +++ b/packages/web-forms/src/demo/FormPreview.vue @@ -21,7 +21,10 @@ formFixtureGlobImports[formPath]() .then((xml:string) => { formXML.value = xml; }) - .catch(() => { + .catch((error) => { + // eslint-disable-next-line no-console + console.error('Failed to load the Form XML', error); + alert('Failed to load the Form XML'); });