Skip to content

Commit

Permalink
Merge pull request #24 from education/remove-stdio-inherit
Browse files Browse the repository at this point in the history
make failure case more obvious
  • Loading branch information
ashishkeshan authored Mar 28, 2024
2 parents 6ffe8be + 2cb61b6 commit 84ff44c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -137,6 +133,7 @@ function run() {
],
}

console.log(result)
core.setOutput('result', btoa(JSON.stringify(result)))
} catch (error) {
const result = {
Expand Down

0 comments on commit 84ff44c

Please sign in to comment.