Repository navigation
Conversation
8 tasks
Contributor
|
@lukehutch - Would it be OK if I take this PR over and get it in? |
Contributor
Author
|
@SandPod please do |
Contributor
|
Sorry, the close here was not intentional. An incorrect reference to this PR accidentally closed the issue. |
8 tasks done
Contributor
|
This feature was implemented in: #3047 |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
All of the context of a
PgException(specifically, the context in its subclass,ServerException) is lost when only the message is preserved in aDatabaseException. This means that the user cannot be notified, for example, of the character offset of a syntax error, which can make debugging query errors very difficult (you basically have to print out the query on the server console, copy/paste it into a proper Postgres client UI, and see where the error is highlighted).This change copies all the fields of
ServerExceptionacross toDatabaseExceptionin a backwards-compatible way.I will leave it up to you to add some of this extra info to the error logs, so that Serverpod Insights can report more info on database errors.
Pre-launch Checklist
///), and made sure that the documentation follows the same style as other Serverpod documentation. I checked spelling and grammar.