GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — fs: pass the error if directory already closed by Lxxyx · Pull Request #36243 · nodejs/node Conversation
Member
Asynchronous functions should forward errors via callback. Fixes: #36237 Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
targos
reviewed
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Lxxyx
force-pushed
the
fix/dir-close-throws
branch
from
65a8561 to
cb6b8a2
Compare
Member
Author
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
aduh95
reviewed
Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Lxxyx
force-pushed
the
fix/dir-close-throws
branch
from
cb6b8a2 to
b0b499f
Compare
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
aduh95
approved these changes
joyeecheung
approved these changes
aduh95
reviewed
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. On a second thought, I think the tests could be improved a bit:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page. Uh oh!
There was an error while loading. Please reload this page.
Lxxyx
force-pushed
the
fix/dir-close-throws
branch
from
b0b499f to
1fb210c
Compare
Member
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
aduh95
approved these changes
This comment has been minimized.
This comment has been minimized.
joyeecheung
approved these changes
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still LGTM
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
|
There was an error while loading. Please reload this page.
|
CI: https://ci.nodejs.org/job/node-test-pull-request/34556/ ✅ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Commit Queue failed- Loading data for nodejs/node/pull/36243 ✔ Done loading data for nodejs/node/pull/36243 ----------------------------------- PR info ------------------------------------ Title fs/dir: pass the error to the callback or Promise.catch if already closed (#36243) Author Lxxyx (@Lxxyx, first-time contributor) Branch Lxxyx:fix/dir-close-throws -> nodejs:master Labels author ready, fs Commits 1 - fs/dir: pass the error to the callback or Promise.catch if already cl… Committers 1 - Zijian Liu PR-URL: https://github.com/nodejs/node/pull/36243 Fixes: https://github.com/nodejs/node/issues/36237 Reviewed-By: Antoine du Hamel Reviewed-By: Joyee Cheung Reviewed-By: Rich Trott Reviewed-By: Yongsheng Zhang ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/36243 Fixes: https://github.com/nodejs/node/issues/36237 Reviewed-By: Antoine du Hamel Reviewed-By: Joyee Cheung Reviewed-By: Rich Trott Reviewed-By: Yongsheng Zhang -------------------------------------------------------------------------------- ✔ Last GitHub Actions successful ℹ Last Full PR CI on 2020-11-25T15:23:50Z: https://ci.nodejs.org/job/node-test-pull-request/34556/ - Querying data for job/node-test-pull-request/34556/ ✔ Build data downloaded ✔ Last Jenkins CI successful ℹ This PR was created on Tue, 24 Nov 2020 06:32:49 GMT ✔ Approvals: 4 ✔ - Antoine du Hamel (@aduh95): https://github.com/nodejs/node/pull/36243#pullrequestreview-538317002 ✔ - Joyee Cheung (@joyeecheung) (TSC): https://github.com/nodejs/node/pull/36243#pullrequestreview-538603019 ✔ - Rich Trott (@Trott) (TSC): https://github.com/nodejs/node/pull/36243#pullrequestreview-539312063 ✔ - Yongsheng Zhang (@ZYSzys): https://github.com/nodejs/node/pull/36243#pullrequestreview-539441282 -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/master up to date... From https://github.com/nodejs/node * branch master -> FETCH_HEAD ✔ origin/master is now up-to-date - Downloading patch for 36243 From https://github.com/nodejs/node * branch refs/pull/36243/merge -> FETCH_HEAD ✔ Fetched commits as b4c2ff5a3bb5..1fb210c50356 -------------------------------------------------------------------------------- [master 7e448d0bca] fs/dir: pass the error to the callback or Promise.catch if already closed Author: Zijian Liu Date: Tue Nov 24 14:30:26 2020 +0800 2 files changed, 32 insertions(+), 8 deletions(-) ✔ Patches applied -------------------------------------------------------------------------------- ⚠ Found Fixes: https://github.com/nodejs/node/issues/36237, skipping.. --------------------------------- New Message ---------------------------------- fs/dir: pass the error to the callback or Promise.catch if already closedhttps://github.com/nodejs/node/actions/runs/387516680 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Tried to update the name of Pull Request to avoid "Commit Queue failed" error. @aduh95 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Landed in b938f88 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
1fb210c to
b938f88
Compare
Pass the error to the callback or returns a rejected Promise instead of throwing a synchonous error. Fixes: #36237 PR-URL: #36243 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]>
Pass the error to the callback or returns a rejected Promise instead of throwing a synchonous error. Fixes: #36237 PR-URL: #36243 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Asynchronous dir.close() throws immediately, if already closed
There was an error while loading. Please reload this page.