fs: improve fs.watch ENOSPC error message#21846
fs: improve fs.watch ENOSPC error message#21846addaleax wants to merge 3 commits intonodejs:masterfrom
Conversation
This comment has been minimized.
This comment has been minimized.
179598d to
b2b052c
Compare
|
The test probably needs some per-platform tweaking, so: |
b2b052c to
fd21126
Compare
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
6f4bd38 to
b156539
Compare
|
CI: https://ci.nodejs.org/job/node-test-pull-request/16123/ Might be good to get another @nodejs/tsc review – this error comes with a code already, so I don’t think this has to be semver-major. |
lib/internal/fs/watchers.js
Outdated
There was a problem hiding this comment.
Nit: Might want to call it message?
There was a problem hiding this comment.
+1 to call it message. By the way if the key is message it currently will not appear in the final error object as an additional property whereas description will.
|
Ping again @addaleax |
Providing `No space left on device` is misleading in this case. Replace it with something that describes it more accurately. Refs: https://stackoverflow.com/questions/22475849/node-js-error-enospc/32600959
b156539 to
310fdd4
Compare
|
Rebased, with comments addressed. |
|
Landed in 13245dc |
Providing `No space left on device` is misleading in this case. Replace it with something that describes it more accurately. Refs: https://stackoverflow.com/questions/22475849/node-js-error-enospc/32600959 PR-URL: #21846 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Providing `No space left on device` is misleading in this case. Replace it with something that describes it more accurately. Refs: https://stackoverflow.com/questions/22475849/node-js-error-enospc/32600959 PR-URL: #21846 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Providing
No space left on deviceis misleading in this case.Replace it with something that describes it more accurately.
Refs: https://stackoverflow.com/questions/22475849/node-js-error-enospc/32600959
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes