You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Based on https://github.com/postcss/postcss/blob/master/lib/css-syntax-error.es6#L132
10
+
// We don't need `plugin` and `file` properties.
11
+
this.message=`${this.name}\n\n`;
12
+
13
+
if(typeofline!=='undefined'){
14
+
this.message+=`(${line}:${column}) `;
12
15
}
13
16
17
+
this.message+=`${reason}`;
18
+
14
19
constcode=error.showSourceCode();
15
20
16
21
if(code){
17
22
this.message+=`\n\n${code}\n`;
18
23
}
19
24
20
-
// We don't need stack https://github.com/postcss/postcss/blob/ebaa53640657fb028803d624395ea76a8df11cbe/docs/guidelines/runner.md#31-dont-show-js-stack-for-csssyntaxerror
25
+
// We don't need stack https://github.com/postcss/postcss/blob/master/docs/guidelines/runner.md#31-dont-show-js-stack-for-csssyntaxerror
// Based on https://github.com/postcss/postcss/blob/master/lib/warning.es6#L74
9
+
// We don't need `plugin` properties.
10
+
this.message=`${this.name}\n\n`;
11
+
12
+
if(typeofline!=='undefined'){
13
+
this.message+=`(${line}:${column}) `;
14
+
}
15
+
16
+
this.message+=`${text}`;
7
17
8
-
// We don't need stack https://github.com/postcss/postcss/blob/ebaa53640657fb028803d624395ea76a8df11cbe/docs/guidelines/runner.md#31-dont-show-js-stack-for-csssyntaxerror
18
+
// We don't need stack https://github.com/postcss/postcss/blob/master/docs/guidelines/runner.md#31-dont-show-js-stack-for-csssyntaxerror
0 commit comments