Include CLI output in JSON error
This commit is contained in:
parent
6f07b504a5
commit
e08f131aab
3 changed files with 3 additions and 3 deletions
2
lib/codeql.js
generated
2
lib/codeql.js
generated
|
|
@ -390,7 +390,7 @@ async function getCodeQLForCmd(cmd, checkVersion) {
|
|||
return JSON.parse(output);
|
||||
}
|
||||
catch (e) {
|
||||
throw new Error(`Unexpected output from codeql resolve build-environment: ${e}`);
|
||||
throw new Error(`Unexpected output from codeql resolve build-environment: ${e} in\n${output}`);
|
||||
}
|
||||
},
|
||||
async databaseRunQueries(databasePath, extraSearchPath, querySuitePath, flags, optimizeForLastQueryRun) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -720,7 +720,7 @@ export async function getCodeQLForCmd(
|
|||
return JSON.parse(output);
|
||||
} catch (e) {
|
||||
throw new Error(
|
||||
`Unexpected output from codeql resolve build-environment: ${e}`
|
||||
`Unexpected output from codeql resolve build-environment: ${e} in\n${output}`
|
||||
);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue