Skip to content
Snippets Groups Projects
Commit 5a5b2260 authored by Valentin Perrelle's avatar Valentin Perrelle Committed by David Bühler
Browse files

[Eva] multidim: display a proper error message when the scoped variables cannot be found

parent 7883e630
No related branches found
No related tags found
No related merge requests found
......@@ -414,6 +414,11 @@ module DomainScope = Register (struct
begin match context.Logic_typing.find_var v with
| {lv_origin=Some vi} -> vi
| _ -> raise Parse_error
| exception Not_found ->
Kernel.warning ~wkey:Kernel.wkey_annot_error
~once:true ~current:true
"cannot find variable %s at this point" v;
raise Parse_error
end
| _ -> raise Parse_error
in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment