PR#6935:ocamldebug:load_printer raise uncaught exception when passing directory

Fix by catching Sys_error exception.
master
lijunsong 2015-11-17 18:15:17 -08:00
parent 1caf9364e3
commit 1f79677ffb
1 changed files with 3 additions and 0 deletions

View File

@ -76,6 +76,9 @@ let rec loadfiles ppf name =
| Not_found ->
fprintf ppf "Cannot find file %s@." name;
false
| Sys_error msg ->
fprintf ppf "%s: %s@." name msg;
false
| Dynlink.Error e ->
raise(Error(Load_failure e))