Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 1fd57917 authored by MARCHE Claude's avatar MARCHE Claude
Browse files

more explicit error message of CE parsing errors

parent 796ee891
Branches
Tags
No related merge requests found
......@@ -39,12 +39,14 @@ let do_parsing model =
| Parse_smtv2_model_lexer.SyntaxError ->
Warning.emit
~loc:(get_position lexbuf)
"Error@ during@ lexing@ of@ smtlib@ model:@ unexpected character";
"Error@ during@ lexing@ of@ smtlib@ model:@ unexpected text '%s'"
(Lexing.lexeme lexbuf);
Stdlib.Mstr.empty
| Parse_smtv2_model_parser.Error ->
begin
let loc = get_position lexbuf in
Warning.emit ~loc:loc "Error@ during@ parsing@ of@ smtlib@ model";
Warning.emit ~loc:loc "Error@ during@ parsing@ of@ smtlib@ model: unexpected text '%s'"
(Lexing.lexeme lexbuf);
Stdlib.Mstr.empty
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment