Skip to content
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): align error messages #25914

Merged
merged 1 commit into from
Oct 1, 2024
Merged

Conversation

irbull
Copy link
Contributor

@irbull irbull commented Sep 27, 2024

Aligns the error messages in the ext folder to be in-line with the Deno style guide.

#25269

Aligns the error messages in the ext folder to be in-line with the Deno
style guide.

denoland#25269
}

if (cert !== undefined && key === undefined) {
throw new TypeError(
`If \`cert\` is specified, \`key\` must be specified as well for \`${api}\`.`,
`If \`cert\` is specified, \`key\` must be specified as well for \`${api}\``,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're using double quotes for option KeyFormat, but using backquotes for cert. Should we make them consistent?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. We didn't really specify which quoting style we want and things are all over the map. I've been trying to remove the forward tick style as that wasn't used much. I've been trying to align on double quotes, but I know that it's a bit of a mixed bag.

I guess this particular rule could be specified with a linter rule, but that would likely cause the entire code base to fail and would require a rather large change-set to align everything. I'm not sure that's worth it.

That's a long way of saying I'll move to double quotes here, and if we want to align the entire code base we can file an issue and weigh the benefits.

Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@dsherret dsherret merged commit 41a7089 into denoland:main Oct 1, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants