Merge branch 'main' into rvermeulen/uri-errors-as-warnings
This commit is contained in:
commit
a1a585f2ab
81 changed files with 547 additions and 609 deletions
2
lib/upload-lib.js
generated
2
lib/upload-lib.js
generated
|
|
@ -319,7 +319,7 @@ function validateSarifFileSchema(sarifFilePath, logger) {
|
|||
sarif = JSON.parse(fs.readFileSync(sarifFilePath, "utf8"));
|
||||
}
|
||||
catch (e) {
|
||||
throw new InvalidSarifUploadError(`Invalid SARIF. JSON syntax error: ${(0, util_1.wrapError)(e).message}`);
|
||||
throw new InvalidSarifUploadError(`Invalid SARIF. JSON syntax error: ${(0, util_1.getErrorMessage)(e)}`);
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
||||
const schema = require("../src/sarif-schema-2.1.0.json");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue