Print out slack payload on error

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2024-07-27 10:47:14 +01:00
parent 42f9b8da76
commit 801574a245
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -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
} }