diff --git a/dist/index.js b/dist/index.js index b849fd8..d726bda 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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}`); } }; diff --git a/src/autograding.ts b/src/autograding.ts index 3bc2faa..ac07d71 100644 --- a/src/autograding.ts +++ b/src/autograding.ts @@ -32,7 +32,7 @@ const run = async (): Promise => { 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}`) } }