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

Bad CLI error output when outputting to nonexistent directory #205

Closed
pe3 opened this issue Jul 23, 2013 · 0 comments · Fixed by #1396
Closed

Bad CLI error output when outputting to nonexistent directory #205

pe3 opened this issue Jul 23, 2013 · 0 comments · Fixed by #1396
Labels
L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue

Comments

@pe3
Copy link

pe3 commented Jul 23, 2013

To repeat the problem

echo "hello" > test.md
cat test.md
marked test.md -o test.html
cat test.html
marked test.md -o nonexistent_dir/test.html

results in an error which makes you doubt the quality of marked

/usr/local/share/npm/lib/node_modules/marked/bin/marked:182
    if (err) throw err;
                   ^
Error: ENOENT, open 'nonexistent_dir/test.html'

compare it to mv test.md nonexistent_dir/test.md which results in:

mv: rename test.md to nonexistent_dir/test.md: No such file or directory
@joshbruce joshbruce added the L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue label Dec 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
L2 - annoying Similar to L1 - broken but there is a known workaround available for the issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants