-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
refactor(ext/fetch): align error messages #25374
Conversation
Aligns the error messages in the ext/fetch folder to be in-line with the Deno style guide. denoland#25269
ext/fetch/21_formdata.js
Outdated
@@ -396,7 +396,7 @@ class MultipartParser { | |||
*/ | |||
constructor(body, boundary) { | |||
if (!boundary) { | |||
throw new TypeError("multipart/form-data must provide a boundary"); | |||
throw new TypeError("Cannot construct MultipartParser: multipart/form-data must provide a boundary"); |
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.
This is not a public API - so this doesn't matter. But it's ok :)
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.
While some of these are not public API, do any of these exceptions propagate high enough that the user would see them?
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com> Signed-off-by: Ian Bull <irbull@gmail.com>
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, left two nitpicky comments. Let me know what you think
Co-authored-by: Marvin Hagemeister <marvinhagemeister50@gmail.com> Signed-off-by: Ian Bull <irbull@gmail.com>
Aligns the error messages in the ext/fetch folder to be in-line with the Deno style guide.
#25269