errors: provide defaults for unmapped uv errors#29288
errors: provide defaults for unmapped uv errors#29288cjihrig wants to merge 1 commit intonodejs:masterfrom
Conversation
bnoordhuis
left a comment
There was a problem hiding this comment.
LGTM but note there's another lazyErrmapGet() in lib/internal/util.js because of course there is.
That one handles missing entries by returning Unknown system error ${err}. That's arguably a little nicer for debugging.
That one is gone, as of #29285.
I've updated the PR so that |
libuv does not map 100% of errors. When an unmapped error is encountered, the Map returns undefined, which is then unsuccessfully destructured, causing an exception. This commit adds a default value in the event of an unmapped error.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/25268/ EDIT: CI was yellow. |
|
Landed in c246f81 |
libuv does not map 100% of errors. When an unmapped error is encountered, the Map returns undefined, which is then unsuccessfully destructured, causing an exception. This commit adds a default value in the event of an unmapped error. PR-URL: #29288 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
libuv does not map 100% of errors. When an unmapped error is encountered, the Map returns undefined, which is then unsuccessfully destructured, causing an exception. This commit adds a default value in the event of an unmapped error. PR-URL: #29288 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
libuv does not map 100% of errors. When an unmapped error is encountered, the Map returns undefined, which is then unsuccessfully destructured, causing an exception. This commit adds a default value in the event of an unmapped error. PR-URL: #29288 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
libuv does not map 100% of errors. When an unmapped error is encountered, the
Mapreturnsundefined, which is then unsuccessfully destructured, causing an exception. This commit adds a default value in the event of an unmapped error.A test will be added once #29285 lands.Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes