diff options
author | 2011-05-13 17:57:41 +0000 | |
---|---|---|
committer | 2011-05-13 17:57:41 +0000 | |
commit | edcf0d8b8bff399443ddf4cd436185c33bf59829 (patch) | |
tree | b95d6dd4ae5ccae0114b2fa27c00bcd89f445f78 /toplevel/coqtop.ml | |
parent | 1b906116b43f5975fef7bb6f4dfb9589cfe3d6ee (diff) |
A new mechanism to handle errors.
Instead of the monolitic Cerrors, I introduce a lightweight Errors module
whose error message can be expanded by module introducing exceptions.
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@14119 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel/coqtop.ml')
-rw-r--r-- | toplevel/coqtop.ml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toplevel/coqtop.ml b/toplevel/coqtop.ml index e0f21aab8..c0f689467 100644 --- a/toplevel/coqtop.ml +++ b/toplevel/coqtop.ml @@ -306,9 +306,9 @@ let parse_args arglist = try Stream.empty s; exit 1 with Stream.Failure -> - msgnl (Cerrors.explain_exn e); exit 1 + msgnl (Errors.print e); exit 1 end - | e -> begin msgnl (Cerrors.explain_exn e); exit 1 end + | e -> begin msgnl (Errors.print e); exit 1 end let init arglist = Sys.catch_break false; (* Ctrl-C is fatal during the initialisation *) |