Skip to content

Commit

Permalink
fix(exec): better error
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Aug 29, 2023
1 parent 2e39e3d commit 2d73969
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/exceptions/NodeCommandException.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export class NodeCommandException extends Exception {
delete error.stdout
delete error.stderr

help = help.concat(
`\n\n Full command error:\n\n ${JSON.stringify(error)}`,
)
help = help.concat(`\n\n Error name:\n\n ${error.name}}`)
help = help.concat(`\n\n Error message:\n\n ${error.message}}`)
help = help.concat(`\n\n Error stack:\n\n ${error.stack}}`)

super({
help,
Expand Down

0 comments on commit 2d73969

Please sign in to comment.