-
Notifications
You must be signed in to change notification settings - Fork 25
Error codes #176
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error codes #176
Conversation
🦋 Changeset detectedLatest commit: 297d709 The changes in this PR will be included in the next version bump. This PR includes changesets to release 15 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had some minor comments, but looks good overall to me.
The goal is to introduce consistent error codes throughout the entire service stack, in the form of
PSYNC_Sxxxx
for service errors, andPSYNC_Rxxxx
for sync rules errors.This refactors the error classes a bit to support this, and refactors an initial set of errors to use this new format. There are many cases not covered yet - can improve that over time.
The service-errors package contains a script to generate documentation for error codes from the source - see example here. This can be tweaked over time.
Some specific error messages have been improved:
value.get is not a function
when having an empty bucket (shows better error message now).There is now a "test-connection" action on the entry point that does the same connection validation as on the cloud service, which is also useful to test these error message changes.