Skip to content

Commit

Permalink
fix: improved deserialisation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jayy-lmao committed Jun 2, 2024
1 parent a52196f commit 6296a13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/order_taking/place_order/api.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ pub fn place_order_api(
_ -> "Json deser error"
}

// response.new(401)
// |> response.set_body(mist.Bytes(bytes_builder.from_string(message)))
// Maybe ideally this should live somewhere in the public domain etc
// But happy for it to be here for now
let json =
place_order_error_dto.PlaceOrderErrorDto(
code: "DeserialisationError",
Expand Down

0 comments on commit 6296a13

Please sign in to comment.