[linters] Make the syntax error message more prominent

Reviewed By: martinoluca

Differential Revision: D4681554

fbshipit-source-id: f5e74c5
master
Dulma Churchill 8 years ago committed by Facebook Github Bot
parent e08d9341c8
commit 6f25eefc1d

@ -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;

Loading…
Cancel
Save