-
Notifications
You must be signed in to change notification settings - Fork 259
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
feat: detailed error handling #965
Conversation
pnpm test -- --onlyChanged |
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.
And back again? Permissions too.
Either way is fine, but probably best to keep it stable
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.
Super odd. I think I've finally got to the root of my husky dramas. NVM has been meddling with it
).data; | ||
return response.html_url; | ||
} catch (err) { | ||
console.error('Failed to get html url'); |
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.
Confirming this is intentionally still there?
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.
Yes, intentional for now.
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.
I see 👀
You are planning on having a central place where you define all error messages aren't you? 👀
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.
Do you guys want me to remove the try/catch from subject/helper apiRequestAuth calls?
}, | ||
}; | ||
} catch (err) { | ||
console.error('Pull Request subject retrieval failed'); |
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.
Intended?
(response as IssueComments)?.user ?? (response as ReleaseComments).author | ||
); | ||
} catch (err) { | ||
console.error('Discussion latest comment retrieval failed'); |
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.
Ditto
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.
Great improvement, very user friendly. Really love this architecture, with the data structure. Clean and clear, easy to modify later. Nice work!
thanks! I think if/when we support partial notifications (ie: one account works, one account fails) the Error page will need to morph into an Error/Warning banner. A future bridge for us to cross |
Ended up renaming the component back to |
Improve error handling feedback loop by inspecting err.response and determining root cause of error.
Refactored the previous
Oops
view to allow error types to be passed in.