From a974095f4c70cf922d2e4626643ddf754586c916 Mon Sep 17 00:00:00 2001 From: Wade Fagen-Ulmschneider Date: Tue, 2 Jul 2024 12:57:00 -0500 Subject: [PATCH] log full error on autograder internal failure --- dist/index.js | 2 +- src/autograding.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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}`) } }