lib/grape/error_formatter/txt.rb in grape-0.14.0 vs lib/grape/error_formatter/txt.rb in grape-0.15.0
- old
+ new
@@ -1,10 +1,12 @@
module Grape
module ErrorFormatter
module Txt
+ extend Base
+
class << self
def call(message, backtrace, options = {}, env = nil)
- message = Grape::ErrorFormatter::Base.present(message, env)
+ message = present(message, env)
result = message.is_a?(Hash) ? MultiJson.dump(message) : message
if (options[:rescue_options] || {})[:backtrace] && backtrace && !backtrace.empty?
result += "\r\n "
result += backtrace.join("\r\n ")