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

Fix ENOENT error message in CLI #3165

Merged
merged 10 commits into from
Jan 27, 2024
5 changes: 3 additions & 2 deletions bin/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,10 @@ export async function main(nodeProcess) {
nodeProcess.exit(0);
} catch (err) {
if (err.code === 'ENOENT') {
nodeProcess.stderr.write('marked: output to ' + err.path + ': No such directory');
nodeProcess.stderr.write('marked: ' + err.path + ': No such directory');
rzhade3 marked this conversation as resolved.
Show resolved Hide resolved
} else {
nodeProcess.stderr.write(err.message);
}
nodeProcess.stderr.write(err);
return nodeProcess.exit(1);
}
}