Skip to content

Commit 7d1c6e9

Browse files
committed
Include codeql path in runCliJson error
1 parent 6cdc606 commit 7d1c6e9

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/codeql.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,8 @@ async function runCliJson<T>(
11401140
try {
11411141
return JSON.parse(output) as T;
11421142
} catch {
1143-
throw Error(`Invalid JSON output from \`${args.join(" ")}\`: ${output}`);
1143+
const command = [cmd, ...args].join(" ");
1144+
throw Error(`Invalid JSON output from \`${command}\`: ${output}`);
11441145
}
11451146
}
11461147

0 commit comments

Comments
 (0)