Skip to content

Commit

Permalink
Merge pull request #261 from looker-open-source/fix-stderr
Browse files Browse the repository at this point in the history
fix: send warning and error text to stderr instead of stdout
  • Loading branch information
drstrangelooker authored Aug 6, 2024
2 parents ddc3c0d + 0ba321c commit 3eb4fce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
gazer (0.3.16)
gazer (0.3.17)
faraday (~> 2.7.8)
faraday-multipart (~> 1.0)
looker-sdk (~> 0.1.6)
Expand Down
4 changes: 2 additions & 2 deletions lib/gzr/modules/session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ def say_ok(data, output: $stdout)
output.puts pastel.green data
end

def say_warning(data, output: $stdout)
def say_warning(data, output: $stderr)
output.puts pastel.yellow data
end

def say_error(data, output: $stdout)
def say_error(data, output: $stderr)
output.puts pastel.red data
end

Expand Down

0 comments on commit 3eb4fce

Please sign in to comment.