Sha256: fae842ef526149071f6146a638ced7bdc8893b5c41390285dbac76245e53f205
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grape-0.6.1 | lib/grape/error_formatter/txt.rb |