Skip to content

Commit

Permalink
include full name in error
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Jun 5, 2024
1 parent 3c3f135 commit 3a399b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions routes/github_webhook.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package routes

import (
"errors"
"fmt"
"log/slog"
"net/http"
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 3a399b0

Please sign in to comment.