No need to call message directly
This commit is contained in:
parent
69270e9eb1
commit
5b628d3c16
1 changed files with 2 additions and 2 deletions
|
@ -455,8 +455,8 @@ and typing_static_exp const_env se =
|
|||
(match ln with
|
||||
| Name n ->
|
||||
(try Svar ln, NamesEnv.find n const_env
|
||||
with Not_found -> message se.se_loc (Eundefined_const ln))
|
||||
| Modname _ -> message se.se_loc (Eundefined_const ln))
|
||||
with Not_found -> error (Eundefined_const ln))
|
||||
| Modname _ -> error (Eundefined_const ln))
|
||||
)
|
||||
| Sconstructor c ->
|
||||
let { qualid = q; info = ty } = find_constr c in
|
||||
|
|
Loading…
Reference in a new issue