From 6f25eefc1d50d09be48dd6e16ad938873a72e3d8 Mon Sep 17 00:00:00 2001 From: Dulma Churchill Date: Thu, 9 Mar 2017 05:22:26 -0800 Subject: [PATCH] [linters] Make the syntax error message more prominent Reviewed By: martinoluca Differential Revision: D4681554 fbshipit-source-id: f5e74c5 --- infer/src/clang/cFrontend_checkers_main.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/infer/src/clang/cFrontend_checkers_main.ml b/infer/src/clang/cFrontend_checkers_main.ml index 59386742c..a1e820c17 100644 --- a/infer/src/clang/cFrontend_checkers_main.ml +++ b/infer/src/clang/cFrontend_checkers_main.ml @@ -24,7 +24,10 @@ let parse_ctl_file linters_files = Logging.err "%a: %s\n" print_position lexbuf msg; None | Ctl_parser.Error -> - Logging.err "%a: syntax error\n" print_position lexbuf; + Logging.err "\n#######################################################\ + \n\n%a: SYNTAX ERROR\n\ + \n########################################################\n@." + print_position lexbuf; exit (-1) in List.iter ~f:(fun fn -> Logging.out "Loading linters rules from %s\n" fn;