lib/deepl/exceptions/bad_request.rb in deepl-rb-2.2.3 vs lib/deepl/exceptions/bad_request.rb in deepl-rb-2.2.4

- old
+ new

@@ -3,9 +3,11 @@ module DeepL module Exceptions class BadRequest < RequestError def message JSON.parse(response.body)['message'] + rescue JSON::ParserError + response.body end end end end