From 3a399b0b854fa94fa1a1356bfe3e511cb9282338 Mon Sep 17 00:00:00 2001 From: topi314 Date: Wed, 5 Jun 2024 23:33:45 +0200 Subject: [PATCH] include full name in error --- routes/github_webhook.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routes/github_webhook.go b/routes/github_webhook.go index 98a6e9c..0a59040 100644 --- a/routes/github_webhook.go +++ b/routes/github_webhook.go @@ -1,7 +1,6 @@ package routes import ( - "errors" "fmt" "log/slog" "net/http" @@ -61,7 +60,7 @@ func processReleaseEvent(b *lavalinkbot.Bot, e *github.ReleaseEvent) error { cfg, ok := b.Cfg.GitHub.Releases[fullName] if !ok { - return errors.New("no config found for this repo") + return fmt.Errorf("no config found for %s", fullName) } webhookClient, ok := b.Webhooks[fullName]