-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change is about: 1. getting rid of lastErrorLog, lastRustError, lastPanic state and instead build all the error information when we parse a log line if that's pertinent 2. Let request errors flow up the stack instead to be emitted in the RequestHandler. 3. Only emit events explicitly during lifecycle management of the binary engine
- Loading branch information
Showing
3 changed files
with
80 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/engine-core/src/common/errors/types/PrismaClientRustErrorArgs.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import type { RustError, RustLog } from '../utils/log' | ||
import type { RustLog } from '../utils/log' | ||
|
||
export type PrismaClientRustErrorArgs = { | ||
clientVersion: string | ||
error: RustLog | RustError | ||
error: RustLog | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters