]> matita.cs.unibo.it Git - helm.git/commitdiff
raise proper exception when a regexp fails on term_of_uri
authorStefano Zacchiroli <zack@upsilon.cc>
Mon, 26 Jan 2004 00:03:37 +0000 (00:03 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Mon, 26 Jan 2004 00:03:37 +0000 (00:03 +0000)
helm/ocaml/cic/helmLibraryObjects.ml

index 4a1a1dad0de1a10edc9e1b4005b01916541082b9..af781edc8fb8cd7ca8bd08fc997c3a1bdd4b818f 100644 (file)
@@ -46,7 +46,7 @@ let term_of_uri uri =
           let (uri, typeno, consno) = indconuri_of_uri s in
           mutconstruct uri typeno consno)
  with
- | Invalid_argument _ -> raise (UriManager.IllFormedUri s)
+ | Invalid_argument _ | Not_found -> raise (UriManager.IllFormedUri s)
 
 (** {2 Helm's objects shorthands} *)