maddyblue / sqlfmt

SQL formatter with width-aware output
https://sqlfum.pt
Apache License 2.0
410 stars 20 forks source link

Error output is going to `stdout` rather than `stderr` #69

Open coolaj86 opened 2 days ago

coolaj86 commented 2 days ago

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 commented 2 days ago

Concur!