aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorherbelin2006-03-04 23:44:25 +0000
committerherbelin2006-03-04 23:44:25 +0000
commit2dfb47c13d6f79fd44bd5f224873f84a6c00c8a9 (patch)
treef056986913dce3374e28a92838aa9e7943a36c7a
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
-rw-r--r--interp/constrintern.ml2
-rw-r--r--pretyping/pretyping.ml3
2 files changed, 3 insertions, 2 deletions
diff --git a/interp/constrintern.ml b/interp/constrintern.ml
index 394d0ae135..608e1bc900 100644
--- a/interp/constrintern.ml
+++ b/interp/constrintern.ml
@@ -265,7 +265,7 @@ let intern_var (env,_,_ as genv) (ltacvars,vars2,vars3,(_,impls)) loc id =
try
match List.assoc id unbndltacvars with
| None -> user_err_loc (loc,"intern_var",
- pr_id id ++ str " 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 ->
(* Is [id] a goal or section variable *)
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