We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98bf6f2 commit 8730f89Copy full SHA for 8730f89
lib/state.ml
@@ -18,6 +18,4 @@ let save state path =
18
let data = State_j.string_of_state state |> Yojson.Basic.from_string |> Yojson.Basic.pretty_to_string in
19
match%lwt write_to_local_file ~data path with
20
| Ok res -> Lwt.return @@ Ok res
21
- | Error e ->
22
- log#error "failed to write to local file %s: %s" path e;
23
- Lwt.return @@ fmt_error "failed to save state"
+ | Error e -> Lwt.return @@ fmt_error "error while writing to local file %s: %s\nfailed to save state" path e
0 commit comments