lib/rcoli.rb in rcoli-0.5.5 vs lib/rcoli.rb in rcoli-0.5.6
- old
+ new
@@ -29,8 +29,10 @@
at_exit {
begin
@program.execute(ARGV, self)
rescue InvalidCommand => e
say "#{@program.value_of_name}: #{e.message}. See '#{@program.value_of_name} help'"
+ rescue ApplicationError => e
+ say($terminal.color "#{e.message}", :red)
end
}