File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,6 @@ class SassError extends Error {
3
3
super ( ) ;
4
4
5
5
this . name = "SassError" ;
6
- // TODO remove me in the next major release
7
- this . originalSassError = sassError ;
8
6
9
7
if (
10
8
typeof sassError . line !== "undefined" ||
@@ -18,13 +16,11 @@ class SassError extends Error {
18
16
19
17
// Keep original error if `sassError.formatted` is unavailable
20
18
this . message = `${ this . name } : ${
21
- typeof this . originalSassError . message !== "undefined"
22
- ? this . originalSassError . message
23
- : this . originalSassError
19
+ typeof sassError . message !== "undefined" ? sassError . message : sassError
24
20
} `;
25
21
26
- if ( this . originalSassError . formatted ) {
27
- this . message = `${ this . name } : ${ this . originalSassError . formatted . replace (
22
+ if ( sassError . formatted ) {
23
+ this . message = `${ this . name } : ${ sassError . formatted . replace (
28
24
/ ^ E r r o r : / ,
29
25
""
30
26
) } `;
You can’t perform that action at this time.
0 commit comments