aboutsummaryrefslogtreecommitdiff
path: root/lib/kernel/layer.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kernel/layer.ml')
-rw-r--r--lib/kernel/layer.ml4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/layer.ml b/lib/kernel/layer.ml
index ec074a7..f069546 100644
--- a/lib/kernel/layer.ml
+++ b/lib/kernel/layer.ml
@@ -85,11 +85,11 @@ let load rank_of_sexp path =
unterminated list or string) rather than [Sexplib.Sexp.Parse_error], so a
catch-all here -- placed last among the exception branches -- is what
actually keeps every parse failure inside [Error] instead of escaping. *)
- | exception exn -> Error (Printf.sprintf "%s: %s" path (Printexc.to_string exn))
+ | exception exn -> Error (Printf.sprintf "%s: %s" path (Sexp_error.humanise (Printexc.to_string exn)))
| sexp -> (
match t_of_sexp rank_of_sexp sexp with
| t -> Ok { t with entries = canonical t.entries }
(* [rank_of_sexp] is caller-supplied and may raise anything, not only
[Of_sexp_error] -- mirrors [Overlay.load]'s catch-all, so "never as
an exception" (layer.mli) actually holds. *)
- | exception exn -> Error (Printf.sprintf "%s: %s" path (Printexc.to_string exn)))
+ | exception exn -> Error (Printf.sprintf "%s: %s" path (Sexp_error.humanise (Printexc.to_string exn))))