lib/superscript/runner.rb in superscript-0.9.0 vs lib/superscript/runner.rb in superscript-0.10.0

- old
+ new

@@ -33,16 +33,16 @@ pp [:unknown_where, where, args] error_message = args.join(" ") end puts error_message - if @on_error_exec - system("#{@on_error_exec} #{error_message}") - end - unless @path == "<interactive>" - exit 1 + caller.each do |c| + puts c end + system @on_error_exec, error_message if @on_error_exec + + exit 1 unless @path == "<interactive>" end def arm!(reason=nil) p [:arm!, reason] if ENV["SUPERSCRIPT_DEBUG"] @armed = true