-
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
feat(std/node/util): implement getSystemErrorName()
#7624
Conversation
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 the patch! Just needs to be formatted.
std/node/_internal/errors/mod.ts
Outdated
@@ -22,6 +22,7 @@ | |||
// USE OR OTHER DEALINGS IN THE SOFTWARE. |
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.
Why rename this file? It seems unnecessary.
std/node/_internal/errors/errmap.ts
Outdated
@@ -0,0 +1,279 @@ | |||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. |
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.
Don't start a new file - add to std/node/_errors.ts
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 - thanks @schwarzkopfb
Ref: https://nodejs.org/dist/latest-v14.x/docs/api/util.html#util_util_getsystemerrorname_err