From 5f682a44d24f4e7a6e27ec8dea7aeaaa4447c6e7 Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sun, 30 Jun 2019 04:14:09 +0700 Subject: Change syntax error wording. --- src/parser.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/parser.ml b/src/parser.ml index 67e41ba..b334a20 100644 --- a/src/parser.ml +++ b/src/parser.ml @@ -17,7 +17,7 @@ let rec parse lexbuf (checkpoint : Config_tree.t I.checkpoint) = parse lexbuf checkpoint | I.HandlingError _env -> let line, pos = Util.get_lexing_position lexbuf in - raise (Syntax_error (Some (line, pos), "Syntax error")) + raise (Syntax_error (Some (line, pos), "Invalid syntax.")) | I.Accepted v -> v | I.Rejected -> raise (Syntax_error (None, "invalid syntax (parser rejected the input)")) -- cgit v1.2.3