We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 247d419 commit 4a305d8Copy full SHA for 4a305d8
src/github/webhooks.rs
@@ -54,7 +54,14 @@ impl FromDataSimple for Event {
54
let payload = match parse_event(event_name, &body) {
55
Ok(p) => p,
56
Err(DashError::Serde(why)) => {
57
- info!("failed to parse webhook payload: {:?}", why);
+ error!("failed to parse webhook payload: {:?}", why);
58
+ return Failure((
59
+ Status::BadRequest,
60
+ "failed to deserialize request payload",
61
+ ));
62
+ }
63
+ Err(DashError::SerdePath(why)) => {
64
65
return Failure((
66
Status::BadRequest,
67
"failed to deserialize request payload",
0 commit comments