-
Notifications
You must be signed in to change notification settings - Fork 774
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
moveSync error does not have code property #734
Comments
Yeah, for a time we tried to fake native Node errors, but gave up on it since they're impossible to completely properly replicate. |
so in your opinion, downstream code should be matching against This also seems like a breaking change. I will check again, as I I may have missed it in your changelog. EDIT: I've also suggested in CRA to refactor the code with an |
Yeah, should have been clearer in the release notes; 8.0.0 did a lot of changes to |
12.13.0
fs-extra
version:8.1.0
First reported within facebook/create-react-app#7892 -
moveSync
errors thrown when the destination already exist do not haveEEXISTS
as acode
property, causing defensive try catches (in that thread) to fall throughI isolated this behavior outside of CRA, and I think it serves as a proper reduced test case to discuss further.
✔️ fs-extra@7.0.1
moveSync
behavior with error.code❌ fs-extra@8.1.0
moveSync
behavior without error.codeThe text was updated successfully, but these errors were encountered: