lib/trailblazer/activity/dsl/linear/strategy.rb in trailblazer-activity-dsl-linear-0.3.4 vs lib/trailblazer/activity/dsl/linear/strategy.rb in trailblazer-activity-dsl-linear-0.3.5

- old
+ new

@@ -44,9 +44,13 @@ args = forward_block(args, block) seq = @state.send(type, *args) recompile_activity!(seq) + rescue Sequence::IndexError + # re-raise this exception with activity class prepended + # to the message this time. + raise $!, "#{self}:#{$!.message}" end private def recompile_activity!(seq) schema = Compiler.(seq)