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

Error output is going to stdout rather than stderr #69

Open
coolaj86 opened this issue Sep 18, 2024 · 2 comments
Open

Error output is going to stdout rather than stderr #69

coolaj86 opened this issue Sep 18, 2024 · 2 comments

Comments

@coolaj86
Copy link

coolaj86 commented Sep 18, 2024

The error goes out to the sql file instead of the error log.

echo "foobar" | sqlfmt > formatted.sql 2> error.log

formatted.sql:

at or near "bananagram": syntax error

error.log:

I think this is the reason for #68.

@maddyblue
Copy link
Owner

Concur!

@ebc-2in2crc
Copy link
Contributor

@coolaj86 Hi.

I encountered the same problem.
I think this behavior was fixed in #70 .

$ echo "foobar" | sqlfmt > formatted.sql 2> error.log
$ cat formatted.sql
$ cat error.log
at or near "foobar": syntax error

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

3 participants