PR#6935:ocamldebug:load_printer raise uncaught exception when passing directory
Fix by catching Sys_error exception.master
parent
1caf9364e3
commit
1f79677ffb
|
@ -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))
|
||||
|
||||
|
|
Loading…
Reference in New Issue