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 6cca198 commit 3fbd63aCopy full SHA for 3fbd63a
index.js
@@ -29,13 +29,11 @@ function _checkAccelerator(accelerator) {
29
if (!isAccelerator(accelerator)) {
30
const w = {};
31
Error.captureStackTrace(w);
32
+ const stack = w.stack ? w.stack.split('\n').slice(4).join('\n') : w.message;
33
const msg = `
34
WARNING: ${accelerator} is not a valid accelerator.
35
-${w.stack
36
- .split('\n')
37
- .slice(4)
38
- .join('\n')}
+${stack}
39
`;
40
console.error(msg);
41
}
0 commit comments