Skip to content

Commit

Permalink
Showing 3 changed files with 25 additions and 5 deletions.
14 changes: 12 additions & 2 deletions lib/codeql.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/codeql.js.map
14 changes: 12 additions & 2 deletions src/codeql.ts
@@ -674,7 +674,13 @@ function getCodeQLForCmd(cmd: string): CodeQL {
},
}).exec();

return JSON.parse(output);
try {
return JSON.parse(output);
} catch (e) {
throw new Error(
`Unexpected output from codeql resolve languages: ${e}`
);
}
},
async resolveQueries(
queries: string[],
@@ -699,7 +705,11 @@ function getCodeQLForCmd(cmd: string): CodeQL {
},
}).exec();

return JSON.parse(output);
try {
return JSON.parse(output);
} catch (e) {
throw new Error(`Unexpected output from codeql resolve queries: ${e}`);
}
},
async databaseAnalyze(
databasePath: string,

0 comments on commit 44c6b33

Please sign in to comment.