diff options
| author | herbelin | 1999-12-10 09:52:15 +0000 |
|---|---|---|
| committer | herbelin | 1999-12-10 09:52:15 +0000 |
| commit | 92c43edb177407876440067a9298fd78e246d12c (patch) | |
| tree | 540c96b1698313ebe09ed19cb80abddd490e8267 /toplevel | |
| parent | 85bd945e22abc31fec8f89da1779d94027323e91 (diff) | |
Suppression Rel de rawconstr et correction de bugs d'affichage
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@228 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
| -rw-r--r-- | toplevel/himsg.ml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toplevel/himsg.ml b/toplevel/himsg.ml index a124d1446c..ff96d59a6d 100644 --- a/toplevel/himsg.ml +++ b/toplevel/himsg.ml @@ -201,6 +201,11 @@ let explain_not_clean k ctx ev t = 'sTR" with a term using variable "; var; 'sPC; 'sTR"which is not in its scope." >] +let explain_var_not_found k ctx id = + [< 'sTR "The variable"; 'sPC; 'sTR (string_of_id id); + 'sPC ; 'sTR "was not found"; + 'sPC ; 'sTR "in the current"; 'sPC ; 'sTR "environment" >] + (* Pattern-matching errors *) let explain_bad_constructor k ctx cstr ind = let pi = pr_inductive ind in @@ -268,6 +273,8 @@ let explain_type_error k ctx = function explain_occur_check k ctx n c | NotClean (n,c) -> explain_not_clean k ctx n c + | VarNotFound id -> + explain_var_not_found k ctx id (* Pattern-matching errors *) | BadConstructor (c,ind) -> explain_bad_constructor k ctx c ind |
