Surface fatal CLI errors in interpret-results and run-queries (#1407)
Co-authored-by: Henry Mercer <henry.mercer@me.com>
This commit is contained in:
parent
0d9b15ca93
commit
aa0e650c6a
21 changed files with 137 additions and 85 deletions
4
lib/error-matcher.js
generated
4
lib/error-matcher.js
generated
|
|
@ -12,6 +12,10 @@ exports.namedMatchersForTesting = {
|
|||
message: "No code found during the build. Please see:\n" +
|
||||
"https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/troubleshooting-code-scanning#no-code-found-during-the-build",
|
||||
},
|
||||
fatalError: {
|
||||
outputRegex: new RegExp("A fatal error occurred"),
|
||||
message: "A fatal error occurred.",
|
||||
},
|
||||
};
|
||||
// we collapse the matches into an array for use in execErrorCatcher
|
||||
exports.errorMatchers = Object.values(exports.namedMatchersForTesting);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue