diff --git a/lib/rack/remote.rb b/lib/rack/remote.rb index 94969b9..02ac213 100644 --- a/lib/rack/remote.rb +++ b/lib/rack/remote.rb @@ -30,13 +30,13 @@ def set_backtrace(trace) # rubocop:disable Naming/AccessorMethodName trace << "/:0 caused by #{cause.class.name}: #{cause.message}" trace += cause.backtrace.map! {|line| " #{line}" } end - super trace + super end end class RemoteError < StandardError def initialize(opts = {}) - super "#{opts[:class]}: #{opts[:error]}" + super("#{opts[:class]}: #{opts[:error]}") set_backtrace opts[:backtrace] end end