summaryrefslogtreecommitdiff
path: root/lib/manifest.ml
diff options
context:
space:
mode:
Diffstat (limited to 'lib/manifest.ml')
-rw-r--r--lib/manifest.ml3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/manifest.ml b/lib/manifest.ml
index 77c75f3..7bf2997 100644
--- a/lib/manifest.ml
+++ b/lib/manifest.ml
@@ -869,10 +869,11 @@ let read () =
let working_dir = Working_directory.get () in
let filepath = Eio.Path.(working_dir / filename) in
Logs.info (fun m -> m "Reading manifest @@ %a …" Eio.Path.pp filepath);
- let* kdl =
+ let kdl_result =
Eio.Path.with_open_in filepath @@ fun flow ->
KDL.of_flow flow
in
+ let* kdl = kdl_result |> Result.map_error (fun (`ParseError msg) -> `Parsing [`ParseError msg]) in
let () = manifest := Some kdl in
Ok kdl