lib/boojs.rb in boojs-0.0.28 vs lib/boojs.rb in boojs-0.0.29

- old
+ new

@@ -46,11 +46,11 @@ @syntax_error = true raise "syntax_error" #Break out end end ensure - Process.kill 9, p.pid + Process.kill :INT, p.pid end end end rescue => e end @@ -61,9 +61,10 @@ ctx = V8::Context.new ctx.load path rescue V8::Error => e matches = e.message.match(/.*? at (?<path>.*?):(?<line>.*?):.*?$/) dump_lines matches[:path], matches[:line].to_i, 10 + system("node #{path}") #The node tool has a lot more info (ignore if they don't have it) end return 1 end