Skip to content

Commit

Permalink
log full error on autograder internal failure
Browse files Browse the repository at this point in the history
  • Loading branch information
wadefagen committed Jul 2, 2024
1 parent 5e90082 commit a974095
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85430,7 +85430,7 @@ const run = async () => {
}
catch (error) {
// If there is any error we'll fail the action with the error message
console.error(error.message);
console.error(error);
core.setFailed(`Autograding failure: ${error}`);
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/autograding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const run = async (): Promise<void> => {
await runAll(json, cwd, testSuite)
} catch (error: any) {
// If there is any error we'll fail the action with the error message
console.error(error.message)
console.error(error)
core.setFailed(`Autograding failure: ${error}`)
}
}
Expand Down

0 comments on commit a974095

Please sign in to comment.