Skip to content

Commit

Permalink
core: fix error log for run(steps)
Browse files Browse the repository at this point in the history
Before:
  - debug: run killed with: {}
After:
  - debug: run killed with: TypeError: Cannot read properties of undefined (reading 'condition')

Change-Id: I640cb5dc0070a66537bd0188cb108be1ab2f7e12
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
  • Loading branch information
amartinz committed Sep 7, 2022
1 parent f42e934 commit 45ff4e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ class Core {
.reduce((chain, next) => chain.then(next), Promise.resolve())
.catch(error => {
// used for killing the run, no actual errors should be escalated here
log.debug(`run killed with: ${JSON.stringify(error)}`);
log.debug("run killed with: " + error);
log.warn("aborting run...");
});
}
Expand Down

0 comments on commit 45ff4e1

Please sign in to comment.