Skip to content

Commit

Permalink
action: log error when query to github's api fail during unfurl
Browse files Browse the repository at this point in the history
  • Loading branch information
Khady committed Aug 6, 2024
1 parent 4e298af commit dd81473
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/action.ml
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ module Action (Github_api : Api.Github) (Slack_api : Api.Slack) = struct
let process link =
let with_gh_result_populate_slack (type a) ~(api_result : (a, string) Result.t) ~populate ~repo =
match api_result with
| Error _ -> Lwt.return_none
| Error msg ->
log#warn "failed to fetch info from github for %s: %s" link msg;
Lwt.return_none
| Ok item -> Lwt.return_some @@ (link, populate repo item)
in
match Github.gh_link_of_string link with
Expand Down

0 comments on commit dd81473

Please sign in to comment.