Skip to content

Error output is going to stdout rather than stderr #69

Open
@coolaj86

Description

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.

Activity

maddyblue

maddyblue commented on Sep 18, 2024

@maddyblue
Owner

Concur!

ebc-2in2crc

ebc-2in2crc commented on Oct 30, 2024

@ebc-2in2crc
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Error output is going to `stdout` rather than `stderr` · Issue #69 · maddyblue/sqlfmt