server/handlerwrappers/default.rb in cpee-1.4.15 vs server/handlerwrappers/default.rb in cpee-1.4.16
- old
+ new
@@ -80,10 +80,10 @@
@controller.callbacks[callback] = CPEE::Callback.new("callback activity: #{@handler_position}",self,:callback,nil,nil,:http)
@handler_passthrough = callback
status, result, headers = client.request type => params
- raise "Could not #{parameters[:method] || 'post'} #{@handler_endpoint}" if status < 200 || status >= 300
+ raise "Could not #{parameters[:method] || 'post'} #{@handler_endpoint} - status: #{status}: #{result&.dig(0)&.value&.read}" if status < 200 || status >= 300
unless headers["CPEE_CALLBACK"] && headers["CPEE_CALLBACK"] == 'true'
callback result
end
else