Skip to content

Commit 789f65c

Browse files
committed
Improving handling of uploadFailedSarifResult -> [Object object]
1 parent a5879b7 commit 789f65c

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

lib/init-action-post-helper.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.

lib/init-action-post-helper.js.map

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

src/init-action-post-helper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,10 @@ export async function run(
171171
process.env["CODEQL_ACTION_EXPECT_UPLOAD_FAILED_SARIF"] === "true" &&
172172
!uploadFailedSarifResult.raw_upload_size_bytes
173173
) {
174+
const error = JSON.stringify(uploadFailedSarifResult);
174175
throw new Error(
175176
"Expected to upload a failed SARIF file for this CodeQL code scanning run, " +
176-
`but the result was instead ${uploadFailedSarifResult}.`
177+
`but the result was instead ${error}.`
177178
);
178179
}
179180

0 commit comments

Comments
 (0)