bin/puffy in puffy-0.1.0 vs bin/puffy in puffy-0.2.0
- old
+ new
@@ -6,12 +6,9 @@
require 'puffy/cli'
begin
cli = Puffy::Cli.new
cli.execute(ARGV)
-rescue Puffy::SyntaxError => e
- $stderr.puts e.message
- exit 1
-rescue Puffy::ParseError => e
- $stderr.puts e.message
+rescue Puffy::SyntaxError, Puffy::ParseError => e
+ warn(e.message)
exit 1
end