Sha256: 897ac02b64f7f956d16e7d820b80c87912ece489b32452e442f0a4caaff25385
Contents?: true
Size: 448 Bytes
Versions: 3
Compression:
Stored size: 448 Bytes
Contents
module Grape module ErrorFormatter module Txt class << self def call(message, backtrace, options = {}, env = nil) 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 ") end result end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
grape-security-0.8.0 | lib/grape/error_formatter/txt.rb |
grape-0.8.0 | lib/grape/error_formatter/txt.rb |
grape-0.7.0 | lib/grape/error_formatter/txt.rb |