error.stack has no message in FF
This commit is contained in:
parent
bf3dd0318d
commit
030621462c
|
@ -79,8 +79,8 @@
|
||||||
return collectStylelintResults(res, opts);
|
return collectStylelintResults(res, opts);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
const fatal = pass === -1 ||
|
const fatal = pass === -1 ||
|
||||||
!pass && !/^CssSyntaxError:.+?Unnecessary curly bracket/.test(e.stack) ||
|
!pass && !/^CssSyntaxError:.+?Unnecessary curly bracket/.test(e) ||
|
||||||
pass && !/^CssSyntaxError:.+?Unknown word[\s\S]*?\.decl\s/.test(e.stack);
|
pass && !/^CssSyntaxError:.+?Unknown word[\s\S]*?\.decl\s/.test(`${e}${e.stack}`);
|
||||||
if (fatal) {
|
if (fatal) {
|
||||||
return [{
|
return [{
|
||||||
from: {line: e.line - 1, ch: e.column - 1},
|
from: {line: e.line - 1, ch: e.column - 1},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user