Print out slack payload on error
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
42f9b8da76
commit
801574a245
2
slack.go
2
slack.go
@ -15,7 +15,7 @@ import (
|
|||||||
func HandleSlackPayloadPost(c *fiber.Ctx) error {
|
func HandleSlackPayloadPost(c *fiber.Ctx) error {
|
||||||
payload := slack.WebhookMessage{}
|
payload := slack.WebhookMessage{}
|
||||||
if err := c.BodyParser(&payload); err != nil {
|
if err := c.BodyParser(&payload); err != nil {
|
||||||
fmt.Println("Failed to parse payload", err)
|
fmt.Println("Failed to parse payload", string(c.Body()), err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user