aboutsummaryrefslogtreecommitdiff
path: root/proofs/tacinterp.ml
diff options
context:
space:
mode:
Diffstat (limited to 'proofs/tacinterp.ml')
-rw-r--r--proofs/tacinterp.ml6
1 files changed, 3 insertions, 3 deletions
diff --git a/proofs/tacinterp.ml b/proofs/tacinterp.ml
index c98840d731..9f68b896fe 100644
--- a/proofs/tacinterp.ml
+++ b/proofs/tacinterp.ml
@@ -186,12 +186,12 @@ let glob_const_nvar loc env qid =
try
(* We first look for a variable of the current proof *)
match repr_qualid qid with
- | [],s ->
- let id = id_of_string s in
+ | [],id ->
(* lookup_value may raise Not_found *)
(match Environ.lookup_named_value id env with
| Some _ -> EvalVarRef id
- | None -> error (s^" does not denote an evaluable constant"))
+ | None -> error ((string_of_id id)^
+ " does not denote an evaluable constant"))
| _ -> raise Not_found
with Not_found ->
try