We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Version: Deno 2.2.1
Exit code when failing to format bad file is 0, deno fmt --check fails.
deno fmt --check
Expected behavior: fmt fails, so should exit with a non-zero exit code.
Reproduce using the following script:
#!/bin/bash deno --version # json with js extension echo '{ "data": {"lang": "en", "length": 25} }' > a.js deno fmt a.js echo "Deno exit was $?"
for 2.2.1 produces:
deno 2.2.1 (stable, release, x86_64-unknown-linux-gnu) v8 13.4.114.9-rusty typescript 5.7.3 Error formatting: /tmp/a.js Expected ';', '}' or <eof> at file:///tmp/a.js:1:9 { "data": {"lang": "en", "length": 25} } ~ Checked 1 file Deno exit was 0
I expected it to exit with 1.
Seems like the same kind of issue as #4157
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Version: Deno 2.2.1
Exit code when failing to format bad file is 0,
deno fmt --check
fails.Expected behavior: fmt fails, so should exit with a non-zero exit code.
Reproduce using the following script:
for 2.2.1 produces:
I expected it to exit with 1.
Seems like the same kind of issue as #4157
The text was updated successfully, but these errors were encountered: