This commit is contained in:
parent
e4b9fb473a
commit
d31e895968
7 changed files with 114 additions and 39 deletions
|
|
@ -14,10 +14,10 @@
|
|||
along with this program. If not, see <https://www.gnu.org/licenses/>. *)
|
||||
|
||||
let error_detail ?hint _status =
|
||||
let open Types.Error_detail in
|
||||
let open Types.ErrorDetail in
|
||||
let open Json in
|
||||
let code = -1 in
|
||||
let s = encode_exn Error_detail.jsont { code; hint } in
|
||||
let s = encode_exn ErrorDetail.jsont { code; hint } in
|
||||
s
|
||||
|
||||
module Respond_with = struct
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue