You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't have a test case to show if this actually creates an inconsistency for the end user, but it was just noticed in review, and I thought I'd report upstream.
The text was updated successfully, but these errors were encountered:
In the sync implementation, we make a
statSync
call, and if it fails, the originalmkdirSync
error is thrown:make-dir/index.js
Lines 137 to 143 in 9de6474
However, in the async implementation, we have no error handling for the
stat
call, and any failure there would bubble up:make-dir/index.js
Lines 84 to 87 in 9de6474
In an earlier (pre-async/await) version, we properly swallowed any
stat
errors, and threw the original error, like the sync implementation:make-dir/index.js
Lines 76 to 80 in 379001f
I don't have a test case to show if this actually creates an inconsistency for the end user, but it was just noticed in review, and I thought I'd report upstream.
The text was updated successfully, but these errors were encountered: