From 2cb61b64b3a730405f4d78839cfc97d0db39842f Mon Sep 17 00:00:00 2001 From: Ashish Keshan Date: Thu, 28 Mar 2024 13:02:29 -0400 Subject: [PATCH] make failure case more obvious --- src/main.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.js b/src/main.js index 1a4f184..3e92bd5 100644 --- a/src/main.js +++ b/src/main.js @@ -111,14 +111,10 @@ function run() { score = 0 } else if (!compareOutput(output, inputs.expectedOutput, inputs.comparisonMethod)) { status = 'fail' - message = `Output does not match expected. Got: ${output}` + message = `Output does not match expected: ${inputs.expectedOutput} Got: ${output}` score = 0 } - if (message) { - console.log(message) - } - const result = { version: 1, status, @@ -137,6 +133,7 @@ function run() { ], } + console.log(result) core.setOutput('result', btoa(JSON.stringify(result))) } catch (error) { const result = {