Skip to content
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

Feature: move should have a custom error type for dest already exists #875

Closed
Nokel81 opened this issue Mar 16, 2021 · 1 comment
Closed

Comments

@Nokel81
Copy link

Nokel81 commented Mar 16, 2021

It would be great for more explicit error handling if the error on https://github.com/jprichardson/node-fs-extra/blob/master/lib/move/move.js#L41 was something like

const err = new Error("dest already exists.");
err.code = "EEXIST";
err.path = dest;
@RyanZim
Copy link
Collaborator

RyanZim commented Mar 16, 2021

This is basically a dupe of #734; logic there still applies.

@RyanZim RyanZim closed this as completed Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants