diff options
author | glondu <glondu@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2009-09-17 17:00:12 +0000 |
---|---|---|
committer | glondu <glondu@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2009-09-17 17:00:12 +0000 |
commit | a537c9f47ac6be8ecbbef284206869136e43f00b (patch) | |
tree | b632a50cee6b72f3ec000d2f671320e9407248c6 /toplevel | |
parent | f2320b085559b7470a3dad13cf2a1e9b0c1fb680 (diff) |
Replace call to where_in_path by find_file_in_path in "Locate File"
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@12342 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'toplevel')
-rw-r--r-- | toplevel/vernacentries.ml | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/toplevel/vernacentries.ml b/toplevel/vernacentries.ml index c97c24cd1..7cde4f637 100644 --- a/toplevel/vernacentries.ml +++ b/toplevel/vernacentries.ml @@ -234,12 +234,8 @@ let dump_universes s = (* "Locate" commands *) let locate_file f = - try - let _,file = System.where_in_path ~warn:false (Library.get_load_paths ()) f in - msgnl (str file) - with Not_found -> - msgnl (hov 0 (str"Can't find file" ++ spc () ++ str f ++ spc () ++ - str"on loadpath")) + let _,file = System.find_file_in_path ~warn:false (Library.get_load_paths ()) f in + msgnl (str file) let msg_found_library = function | Library.LibLoaded, fulldir, file -> |