lib/lev/errors.rb in lev-5.0.0 vs lib/lev/errors.rb in lev-6.0.0
- old
+ new
@@ -20,10 +20,11 @@
if fail
routine_job.failed!
if raise_fatal_errors
- raise StandardError, args.to_a.map { |i| i.join(' ') }.join(' - ')
+ # Use special FatalError type so Routine doesn't re-add job errors
+ raise Lev::FatalError, args.to_a.map { |i| i.join(' ') }.join(' - ')
else
throw :fatal_errors_encountered
end
end
end