lib/synvert/cli.rb in synvert-0.5.0 vs lib/synvert/cli.rb in synvert-0.5.3
- old
+ new
@@ -49,9 +49,12 @@
rescue Parser::SyntaxError => e
puts "Syntax error: #{e.message}"
puts "file #{e.diagnostic.location.source_buffer.name}"
puts "line #{e.diagnostic.location.line}"
false
+ rescue Synvert::Core::RewriterNotFound => e
+ puts e.message
+ false
end
private
# Run OptionParser to parse arguments.