lib/eco/api/session/batch/errors.rb in eco-helpers-2.1.11 vs lib/eco/api/session/batch/errors.rb in eco-helpers-2.1.12

- old
+ new

@@ -79,11 +79,10 @@ # 1. `type` -> the error type `Class` # 2. `err` -> an instance object of that error `class` type # 3. `entry` -> the entry that generated the error # 4. `response` -> the original response from the server that carries the error def errors - require 'byebug' entries.each_with_object([]) do |entry, arr| response = status[entry] if body = response.body errs = [] case body @@ -182,10 +181,10 @@ msg = "" unless status.success?(key) i = to_index(key) entry = queue.to_a[i] response = status[i] - msg = "Error #{response.status} (#{response.status.reason}): #{response.body}\n" + msg = "Error #{response.status}: #{response.body}\n" msg += "-- Failed to batch #{method}. Person: #{person_ref(entry)}" end msg end