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

Poor error for duplicate files #6

Open
sagehane opened this issue Jun 3, 2023 · 0 comments
Open

Poor error for duplicate files #6

sagehane opened this issue Jun 3, 2023 · 0 comments

Comments

@sagehane
Copy link

sagehane commented Jun 3, 2023

Issue:

Running commands when multiple inputs generate the same file will result in the following error message:

Unhandled error: error.DuplicateFile

This is a bug in Zangle, please report it on the issue tracker
along with any information that may help in resolving the bug.

  https://github.com/tauoverpi/zangle/issues/new

Expected behaviour:

The error-case should actually be handled and it should state which files were duplicated.

How to reproduce:

  1. Provide multiple files that generate identical files as args
  2. Run commands like zangle ls <files>

Using a directory with two different files generating the same file:

$ zangle ls foobar
Unhandled error: error.DuplicateFile

This is a bug in Zangle, please report it on the issue tracker
along with any information that may help in resolving the bug.

  https://github.com/tauoverpi/zangle/issues/new

Using the same file twice:

$ zangle ls foobar/foo.md foobar/foo.md
Unhandled error: error.DuplicateFile

This is a bug in Zangle, please report it on the issue tracker
along with any information that may help in resolving the bug.

  https://github.com/tauoverpi/zangle/issues/new

Sample fies:

foobar/foo.md:

```txt file: foobar.md
foo
```

foobar/bar.md:

```txt file: foobar.md
bar
```
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

1 participant