-
Notifications
You must be signed in to change notification settings - Fork 738
fix(dev): add error messages for upload URL expiry #5745
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
Conversation
|
This pull request modifies code in src/ but no tests were added/updated. Confirm whether tests should be added or ensure the PR description explains why tests are not required. |
|
This pull request implements a feature or fix, so it must include a changelog entry. See CONTRIBUTING.md#changelog for instructions. |
b304ac4 to
44978a4
Compare
44978a4 to
f6c8c5c
Compare
willyyhuang
left a comment
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.
LGTM
| } | ||
|
|
||
| export class UploadURLExpired extends ToolkitError { | ||
| static errorName = 'UploadURLExpired' |
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.
Does this make more sense to pass in to the name field, adjacent to the code?
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.
It is following existing pattern.
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.
Those existing uses are incorrect, they are duplicating the existing name property. If you don't want to refactor that in this PR you can follow up and we can merge this now
Problem
Solution
License: I confirm that my contribution is made under the terms of the Apache 2.0 license.