File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ depends: [
19
19
20
20
"core" { >= "v0.15.0" }
21
21
"re"
22
- "lwt" { >= "5.2 .0" & < "6.0.0" }
22
+ "lwt" { >= "5.6 .0" & < "6.0.0" }
23
23
24
24
"caqti" { >= "1.0.0" & < "2.0.0" }
25
25
"caqti-lwt"
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ Add to your OPAM file:
6
6
```
7
7
# You may need to add the pin-depends section:
8
8
pin-depends: [
9
- [ "ADB.1.6 .0" "git+https://github.com/asemio/ADB.git#v1.6 .0" ]
9
+ [ "ADB.1.7 .0" "git+https://github.com/asemio/ADB.git#v1.7 .0" ]
10
10
]
11
11
12
12
# Add to the depends section:
13
13
depends: [
14
- "ADB" { = "1.6 .0" }
14
+ "ADB" { = "1.7 .0" }
15
15
]
16
16
```
17
17
Original file line number Diff line number Diff line change 1
1
(lang dune 2 .0)
2
2
(name ADB)
3
- ( version 1 .6 .0)
3
+ ( version 1 .7 .0)
Original file line number Diff line number Diff line change @@ -104,14 +104,14 @@ let combined_to_error = function
104
104
| (`Connect_failed _ as caqti) ->
105
105
Caqti_error. show caqti |> Error. of_string
106
106
107
- let lift_user_error err = Lwt_result. map_err (fun x -> `User_error x) err
107
+ let lift_user_error err = Lwt_result. map_error (fun x -> `User_error x) err
108
108
109
109
let lift_mixed_errors (ll : S.combined list ) : ('a, S.combined) result =
110
110
Error (`Mixed_error (ll |> List. map ~f: combined_to_error))
111
111
112
112
let lift_unexpected_exn exn = Lwt. return_error (`Unexpected_exception exn )
113
113
114
- let lift_caqti_error err = Lwt_result. map_err (fun x -> `Caqti x) err
114
+ let lift_caqti_error err = Lwt_result. map_error (fun x -> `Caqti x) err
115
115
116
116
(*
117
117
User_error: business logic error as opposed to DB or system errors.
@@ -152,7 +152,7 @@ let do_transaction { pool; log_statements; _ } ~f () =
152
152
(* ERROR: ROLLBACK *)
153
153
| Error err1 as res -> do_rollback ~rollback: M .rollback res err1 )
154
154
pool
155
- |> Lwt_result .map_err (function
155
+ |> Lwt_result .map_error (function
156
156
| `User_error err -> err
157
157
| `Unexpected_exception exn -> raise exn
158
158
| x -> combined_to_error x )
You can’t perform that action at this time.
0 commit comments