Include CLI output in JSON error

This commit is contained in:
Michael B. Gale 2023-06-06 12:17:21 +01:00
parent 6f07b504a5
commit e08f131aab
No known key found for this signature in database
GPG key ID: FF5E2765BD00628F
3 changed files with 3 additions and 3 deletions

2
lib/codeql.js generated
View file

@ -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

View file

@ -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}`
);
}
},