Skip to content

Handle fatal errors correctly#140

Merged
jeroenrinzema merged 1 commit into
jeroenrinzema:mainfrom
JelteF:handle-fatal-errors
Apr 8, 2026
Merged

Handle fatal errors correctly#140
jeroenrinzema merged 1 commit into
jeroenrinzema:mainfrom
JelteF:handle-fatal-errors

Conversation

@JelteF

@JelteF JelteF commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

There was special behaviour for the InvalidPassword error type, but there are many more possibilities for fatal errors. Query handlers might return them for a variety of reasons. All of such errors are expected to close the connection, that's what FATAL (or PANIC) means. This starts handling such non-recoverable errors correctly, by closing the connection when they occur.

It also marks NewErrUnkownStatement as ERROR, instead of FATAL, because it is not a fatal error (and now it creates different behaviour).

@jeroenrinzema jeroenrinzema merged commit 91db84c into jeroenrinzema:main Apr 8, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants