diff --git a/lib/didkit/plc_importer.rb b/lib/didkit/plc_importer.rb index b9c63b5..e105c01 100644 --- a/lib/didkit/plc_importer.rb +++ b/lib/didkit/plc_importer.rb @@ -32,7 +32,7 @@ def ignore_errors=(val) @ignore_errors = val if val - @error_handler = proc { |e| "(ignore error)" } + @error_handler = proc { |e, j| "(ignore error)" } else @error_handler = nil end @@ -56,7 +56,7 @@ def fetch_page begin PLCOperation.new(json) rescue PLCOperation::FormatError, AtHandles::FormatError, ServiceRecord::FormatError => e - @error_handler ? @error_handler.call(e) : raise + @error_handler ? @error_handler.call(e, json) : raise end end