Skip to content

Commit

Permalink
Expose the [Message] exception
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidj authored and tmcgilchrist committed Aug 26, 2023
1 parent 134d702 commit d0a4d4c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Unreleased

## Added

* `Gitlab` module now exposes `Message` exception

## Bug fixes

* `gitlab.atd`: add `scheduler_failure` to `failure_reason`
Expand Down
2 changes: 2 additions & 0 deletions lib/gitlab_s.mli
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module type Gitlab = sig
type rate_limit = { limit : int; remaining : int; reset : float }
type rates = { core : rate_limit option }

exception Message of Cohttp.Code.status_code * Gitlab_t.message

(** Functions corresponding to direct API requests return
{!Response.t} values inside of {!Monad.t} values so that more
information about the request can be made
Expand Down

0 comments on commit d0a4d4c

Please sign in to comment.