Skip to content

Commit

Permalink
Remove unnecessary event emission from libraryEngine
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelff authored and Miguel Fernández committed Nov 21, 2022
1 parent 5792aad commit 84f0538
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/engine-core/src/library/LibraryEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@ You may have to run ${chalk.greenBright('prisma generate')} for your changes to
target: event.module_path,
})
} else if (isPanicEvent(event)) {
// The error built is saved to be thrown later
this.loggerRustPanic = new PrismaClientRustPanicError(
this.getErrorMessageWithLink(
`${event.message}: ${event.reason} in ${event.file}:${event.line}:${event.column}`,
),
this.config.clientVersion!,
)
this.logEmitter.emit('error', this.loggerRustPanic)
} else {
this.logEmitter.emit(event.level, {
timestamp: new Date(),
Expand Down

0 comments on commit 84f0538

Please sign in to comment.