Skip to content

Commit

Permalink
chore: fix error handling lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
timsuchanek committed Jul 28, 2020
1 parent 6dbd350 commit e8db8b6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/packages/engine-core/src/NodeEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1006,11 +1006,9 @@ Please look into the logs or turn on the env var DEBUG=* to debug the constantly
let title = lastLog ?? error.message
let description =
error.stack + '\nExit code: ' + this.exitCode + '\n' + logs
if (!lastLog) {
description =
`signalCode: ${this.child.signalCode} | exitCode: ${this.child.exitCode} | killed: ${this.child.killed}\n` +
description
}
description =
`signalCode: ${this.child.signalCode} | exitCode: ${this.child.exitCode} | killed: ${this.child.killed}\n` +
description
err = new PrismaClientUnknownRequestError(
getErrorMessageWithLink({
platform: this.platform,
Expand Down

0 comments on commit e8db8b6

Please sign in to comment.