aboutsummaryrefslogtreecommitdiff
path: root/pretyping
diff options
context:
space:
mode:
authorherbelin2006-03-04 23:44:25 +0000
committerherbelin2006-03-04 23:44:25 +0000
commit2dfb47c13d6f79fd44bd5f224873f84a6c00c8a9 (patch)
treef056986913dce3374e28a92838aa9e7943a36c7a /pretyping
parent322581e99d650416e89391f953a409219cb5a08a (diff)
Correction message d'erreur ltac et adoption du modèle de message de Tacinterp
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8125 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping')
-rw-r--r--pretyping/pretyping.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/pretyping/pretyping.ml b/pretyping/pretyping.ml
index 8a91cf61e4..7d0c926fac 100644
--- a/pretyping/pretyping.ml
+++ b/pretyping/pretyping.ml
@@ -20,6 +20,7 @@ open Environ
open Type_errors
open Typeops
open Libnames
+open Nameops
open Classops
open List
open Recordops
@@ -121,7 +122,7 @@ let pretype_id loc env (lvar,unbndltacvars) id =
try (* To build a nicer ltac error message *)
match List.assoc id unbndltacvars with
| None -> user_err_loc (loc,"",
- str (string_of_id id ^ " ist not bound to a term"))
+ str "variable " ++ pr_id id ++ str " should be bound to a term")
| Some id0 -> Pretype_errors.error_var_not_found_loc loc id0
with Not_found ->
error_var_not_found_loc loc id