-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[dashboard/server] app error conversion based on error details #19103
Conversation
58c4985
to
77afcbf
Compare
/gh run recreate-vm=true Comment triggered a workflow runStarted workflow run: 6949222385
|
/gh run recreate-vm=true Comment triggered a workflow runStarted workflow run: 6955542072
|
77afcbf
to
84c824e
Compare
84c824e
to
39651e3
Compare
const data = <UnauthorizedError.Data>{ host, scopes, messageHint: messageHint || "unauthorized" }; | ||
const error = Object.assign(new Error(message), { data }); | ||
return error; | ||
return new UnauthorizedRepositoryAccessError({ |
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.
Thanks for providing a smooth transitioning path! 🙇🏻
This feels great! Not touching the call sites but still converting 👍🏻
39651e3
to
6453026
Compare
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.
✔️ the relevant use cases worked fine!
Awesome code change! Very clean transition path 👏🏻
/unhold |
Description
This PR:
Summary generated by Copilot
🤖[deprecated] Generated by Copilot at 9e624aa
Refactored and improved the error handling logic in the server and dashboard components, using new subclasses of
ApplicationError
with protobuf messages and predefined error codes. Removed unused code and props related to errors.Related Issue(s)
Fixes #
How to test
Documentation
Preview status
Gitpod was successfully deployed to your preview environment.
Build Options
Build
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish
Installer
Add desired feature flags to the end of the line above, space separated
Preview Environment / Integration Tests
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Saves cost. Untick this only if you're really sure you need a non-preemtible machine.
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
. If enabled,with-preview
andwith-large-vm
will be enabled./hold