Skip to content

Commit

Permalink
Add last-exception message to MaxSkippedExceeded message
Browse files Browse the repository at this point in the history
Tries to make #221 less painful.
  • Loading branch information
jrochkind committed Apr 16, 2019
1 parent 27fd9d3 commit b2c5f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/traject/solr_json_writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def send_single(c)
if @max_skipped and skipped_record_count > @max_skipped
# re-raising in rescue means the last encountered error will be available as #cause
# on raised exception, a feature in ruby 2.1+.
raise MaxSkippedRecordsExceeded.new("#{self.class.name}: Exceeded maximum number of skipped records (#{@max_skipped}): aborting")
raise MaxSkippedRecordsExceeded.new("#{self.class.name}: Exceeded maximum number of skipped records (#{@max_skipped}): aborting: #{exception.message}")
end
end
end
Expand Down

0 comments on commit b2c5f91

Please sign in to comment.