lib/harvestdor/indexer.rb in harvestdor-indexer-2.3.1 vs lib/harvestdor/indexer.rb in harvestdor-indexer-2.3.2
- old
+ new
@@ -101,12 +101,10 @@
logger.info("Error count: #{metrics.error_count}")
logger.info("Total records processed: #{metrics.total}")
end
def resource_error(e)
- if e.instance_of?(Parallel::Break) || e.instance_of?(Parallel::Kill)
- fail e
- end
+ raise e if e.instance_of?(Parallel::Break) || e.instance_of?(Parallel::Kill)
end
# return Array of druids contained in the DorFetcher pulling indicated by DorFetcher params
# @return [Array<String>] or enumeration over it, if block is given. (strings are druids, e.g. ab123cd1234)
def druids
\ No newline at end of file