aboutsummaryrefslogtreecommitdiffhomepage
path: root/library/libobject.ml
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-05-31 11:42:41 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2000-05-31 11:42:41 +0000
commita87fc0236aa3dd9135ff75a890ba8f5c0a05a419 (patch)
tree4c25046e626fbb0a523e72e0eebc0e5083f25d34 /library/libobject.ml
parent2372cbdcabec698e5deb5abfc393ed3e6909995f (diff)
Amélioration capture des erreurs
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@479 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'library/libobject.ml')
-rw-r--r--library/libobject.ml10
1 files changed, 6 insertions, 4 deletions
diff --git a/library/libobject.ml b/library/libobject.ml
index 31fb81c57..1eb7aea0e 100644
--- a/library/libobject.ml
+++ b/library/libobject.ml
@@ -45,10 +45,12 @@ let declare_object (na,odecl) =
let apply_dyn_fun f lobj =
let tag = object_tag lobj in
- try
- let dodecl = Hashtbl.find cache_tab tag in f dodecl
- with Not_found ->
- anomaly ("Cannot find library functions for an object with tag "^tag)
+ let dodecl =
+ try
+ Hashtbl.find cache_tab tag
+ with Not_found ->
+ anomaly ("Cannot find library functions for an object with tag "^tag)
+ in f dodecl
let cache_object ((_,lobj) as node) =
apply_dyn_fun (fun d -> d.dyn_cache_function node) lobj