Skip to content

Commit

Permalink
Print errors
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Dec 5, 2023
1 parent 463dd8f commit 9459a0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/post/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33257,9 +33257,8 @@ async function run() {
console.log(err)
core.setFailed(`Failed to collect metrics: ${err.message}, logs: ${data}`);
} catch {
console.error("Failed to read log file: /tmp/vmmeter.log")
core.setFailed(`Failed to collect metrics: ${err.message}, logs: (can't read from /tmp/vmmeter.log)`);
}

})

if(core.getBooleanInput("createSummary")){
Expand Down
3 changes: 1 addition & 2 deletions post.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ async function run() {
console.log(err)
core.setFailed(`Failed to collect metrics: ${err.message}, logs: ${data}`);
} catch {
console.error("Failed to read log file: /tmp/vmmeter.log")
core.setFailed(`Failed to collect metrics: ${err.message}, logs: (can't read from /tmp/vmmeter.log)`);
}

})

if(core.getBooleanInput("createSummary")){
Expand Down

0 comments on commit 9459a0d

Please sign in to comment.