Skip to content

Commit

Permalink
Log form loading error if one occurs
Browse files Browse the repository at this point in the history
Please let’s not make it harder to debug when unexpected things happen
  • Loading branch information
eyelidlessness authored and sadiqkhoja committed Sep 11, 2024
1 parent 6f01827 commit e385230
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web-forms/src/demo/FormPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
Expand Down

0 comments on commit e385230

Please sign in to comment.