Skip to content

Commit

Permalink
Add newline to error message for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Nov 11, 2024
1 parent 842a8e4 commit 67ba48f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deepl/cli.cr
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ module DeepL
raise ArgumentError.new("Invalid action: #{option.action}")
end
rescue ex
error_message = "[deepl-cli] ERROR: #{ex.class} #{ex.message}"
error_message = "\n[deepl-cli] ERROR: #{ex.class} #{ex.message}"
error_message += "\n#{ex.response}" if ex.is_a?(Crest::RequestFailed)
error_message += "\n#{ex.backtrace.join("\n")}" if CLI.debug
STDERR.puts error_message
Expand Down

0 comments on commit 67ba48f

Please sign in to comment.