Skip to content

Commit

Permalink
Merge pull request #467 from NordicSemiconductor/fix/logging-nrfutil-…
Browse files Browse the repository at this point in the history
…device-batch-error

Fix: make task errors print properly in logs
  • Loading branch information
kylebonnici authored Apr 15, 2024
2 parents 5cb84f9 + 4de2200 commit d537cfc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/actions/jlinkTargetActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,11 @@ const batchLoggingCallbacks = <T>(
logger.info(`${message} completed`);
} else {
logger.error(
`Failed to ${message.toLowerCase()} core. Error: ${
`Failed "${message.toLowerCase()}". Error:${
taskEnd.error
}, message: ${taskEnd.message}`
? ` code: ${taskEnd.error.code}, description: ${taskEnd.error.description},`
: ''
} message: ${taskEnd.message}`
);
}
},
Expand Down

0 comments on commit d537cfc

Please sign in to comment.