Skip to content

Commit

Permalink
Fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
talemke committed Sep 27, 2020
1 parent bbdc1e2 commit ef5ad05
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ try {
output = result2.stdout.toString().trim();
}
} catch (error) {
core.setFailed(error);
// I THINK, NodeJS will throw error if the command fails (exit code != 0), but that also happens when some linting
// errors are found. So let's just treat this as normal output.
if (error.stdout) {
console.log('Further information:');
console.log(error.stdout.toString());
output = error.stdout.toString().trim();
} else {
core.setFailed(error);
return;
}
return;
}


Expand Down

0 comments on commit ef5ad05

Please sign in to comment.