lib/pork/extra/show_source.rb in pork-1.2.4 vs lib/pork/extra/show_source.rb in pork-1.3.0
- old
+ new
@@ -26,8 +26,10 @@
else
backlight_line(" #{line}")
end
end.join
"\n#{result.chomp}"
+ rescue SyntaxError => e
+ "\nPork bug: Cannot parse the source. Please report: #{e}"
end
end
end