aboutsummaryrefslogtreecommitdiff
path: root/toplevel
diff options
context:
space:
mode:
authorletouzey2010-06-01 14:28:53 +0000
committerletouzey2010-06-01 14:28:53 +0000
commitfb78828587a7ff9e39b3f1eaa1cf0786c7adf81e (patch)
treeb13e5d171a5fc51094e846a4d0028625380342be /toplevel
parentaadff10ea8da78a9acc76a3dc595e47cfa5b72cf (diff)
restore handling of lexer errors
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@13044 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r--toplevel/cerrors.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/toplevel/cerrors.ml b/toplevel/cerrors.ml
index 1f5bbc5210..24e770d10b 100644
--- a/toplevel/cerrors.ml
+++ b/toplevel/cerrors.ml
@@ -35,6 +35,7 @@ let rec explain_exn_default_aux anomaly_string report_fn = function
hov 0 (str "Syntax error: " ++ str txt ++ str ".")
| Token.Error txt ->
hov 0 (str "Syntax error: " ++ str txt ++ str ".")
+ | Lexer.Error.E err -> hov 0 (str (Lexer.Error.to_string err))
| Sys_error msg ->
hov 0 (anomaly_string () ++ str "uncaught exception Sys_error " ++ str (guill msg) ++ report_fn ())
| UserError(s,pps) ->