Skip to content
This repository was archived by the owner on Jul 27, 2021. It is now read-only.

Commit 58693b3

Browse files
committed
Add better names for know errors
1 parent b02da2b commit 58693b3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/transformers/babelSyntax.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ function transform(error) {
2424
return Object.assign({}, error, {
2525
message: cleanStackTrace(cleanMessage(error.message) + '\n'),
2626
severity: 1000,
27+
name: 'Syntax Error',
2728
});
2829
}
2930

src/transformers/esLintError.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ function transform(error) {
1414
'You may use special comments to disable some warnings.',
1515
'Use ' + chalk.yellow('// eslint-disable-next-line') + ' to ignore the next line.',
1616
'Use ' + chalk.yellow('/* eslint-disable */') + ' to ignore all warnings in a file.'
17-
]
17+
],
18+
name: 'Lint error',
1819
});
1920
}
2021

src/transformers/moduleNotFound.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ function transform(error) {
1818
message: `Module not found ${module}`,
1919
type: TYPE,
2020
severity: 900,
21-
module
21+
module,
22+
name: 'Module not found'
2223
});
2324
}
2425

0 commit comments

Comments
 (0)