Skip to content

Commit 73cbc88

Browse files
authored
fix: correctly debug log on GHA request (#40)
`data` is gonna be JSON.
1 parent 36d88e1 commit 73cbc88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const requestThroughGitHubActions = async (
2020
});
2121

2222
if (startResponse.status !== 200) {
23-
console.error(`\nOTP request failed: ${startResponse.data}`);
23+
console.error(`\nOTP request failed: ${JSON.stringify(startResponse.data)}`);
2424
throw new Error(
2525
`Unexpected status when requesting otp on GitHub Actions: ${startResponse.status}`,
2626
);

0 commit comments

Comments
 (0)