We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c6f3cc commit a0f9469Copy full SHA for a0f9469
devtools/dashboard_utilities.mjs
@@ -55,8 +55,12 @@ export function createMocksList(files) {
55
file: filename,
56
keywords: types.join(', ')
57
};
58
- } catch {
59
- console.log(`Couldn't parse ${file.name} as JSON. Excluding from mocks list.`);
+ } catch (error) {
+ if (error instanceof SyntaxError) {
60
+ console.log(`Couldn't parse ${file.name} as JSON. Excluding from mocks list.`);
61
+ } else {
62
+ throw error;
63
+ }
64
}
65
});
66
0 commit comments