From 68850ba7153887d3b69eaaa574990b0e54851179 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 1 Apr 2003 15:50:03 +0000 Subject: fix error message for grep not used with a block --- perl_checker.src/parser_helper.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl_checker.src/parser_helper.ml') diff --git a/perl_checker.src/parser_helper.ml b/perl_checker.src/parser_helper.ml index daaad87..21f91d8 100644 --- a/perl_checker.src/parser_helper.ml +++ b/perl_checker.src/parser_helper.ml @@ -689,7 +689,7 @@ let call_func is_a_func (e, para) = | "map" | "grep" -> (match para with | Anonymous_sub _ :: _ -> () - | _ -> warn_rule (sprintf "always use \"%s\" with a block (eg: map { ... } @list)" f)); + | _ -> warn_rule (sprintf "always use \"%s\" with a block (eg: %s { ... } @list)" f f)); None | _ -> None -- cgit v1.2.1