Explorar el Código

Fix contexts to properly note failure

Mark Rousskov hace 5 años
padre
commit
2f95942488
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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);