Przeglądaj źródła

Fix contexts to properly note failure

Mark Rousskov 5 lat temu
rodzic
commit
2f95942488
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/lib.rs

+ 2 - 2
src/lib.rs

@@ -73,7 +73,7 @@ pub async fn webhook(
     let event = match event {
         EventName::PullRequestReview => {
             let payload = deserialize_payload::<github::PullRequestReviewEvent>(&payload)
-                .context("IssueCommentEvent failed to deserialize")
+                .context("PullRequestReview failed to deserialize")
                 .map_err(anyhow::Error::from)?;
 
             log::info!("handling pull request review comment {:?}", payload);
@@ -97,7 +97,7 @@ pub async fn webhook(
         }
         EventName::PullRequestReviewComment => {
             let payload = deserialize_payload::<github::PullRequestReviewComment>(&payload)
-                .context("IssueCommentEvent failed to deserialize")
+                .context("PullRequestReview(Comment) failed to deserialize")
                 .map_err(anyhow::Error::from)?;
 
             log::info!("handling pull request review comment {:?}", payload);