From 4d768846c1b5d290055bf1a1ae7b6d4fcc497e32 Mon Sep 17 00:00:00 2001 From: Ivan Milchev Date: Wed, 28 Feb 2024 20:24:31 +0100 Subject: [PATCH] fix github provider panic Signed-off-by: Ivan Milchev --- providers/github/resources/github_repo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/providers/github/resources/github_repo.go b/providers/github/resources/github_repo.go index de4d74ddcc..11a7c824a8 100644 --- a/providers/github/resources/github_repo.go +++ b/providers/github/resources/github_repo.go @@ -6,6 +6,7 @@ package resources import ( "context" "errors" + "fmt" "strconv" "strings" @@ -197,7 +198,7 @@ func initGithubRepository(runtime *plugin.Runtime, args map[string]*llx.RawData) } } - return args, nil, nil + return args, nil, fmt.Errorf("could not find repository %q. Make sure the repository exists and the token has sufficient permissions to access it", reponame) } func (g *mqlGithubLicense) id() (string, error) {