From 7256b2677849902183034bc545a66ee98432fb4e Mon Sep 17 00:00:00 2001 From: miyazaki Date: Fri, 28 Feb 2014 14:06:28 +0900 Subject: [PATCH] avoid NoMethodError in Parser --- lib/watson/parser.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/watson/parser.rb b/lib/watson/parser.rb index c3ca5d3..cded338 100755 --- a/lib/watson/parser.rb +++ b/lib/watson/parser.rb @@ -308,7 +308,9 @@ def parse_file(filename) # If not, skip it but tell user about an unrecognized tag unless @config.tag_list.include?(_tag) formatter = Printer.new(@config).build_formatter - formatter.print_status "+", GREEN + if formatter.respond_to?(:print_status) + formatter.print_status "+", GREEN + end print "Unknown tag [#{ _tag }] found, ignoring\n" print " You might want to include it in your RC or with the -t/--tags flag\n" next