From 17fc49187fd59ce654d21be21395fd1d076e7cea Mon Sep 17 00:00:00 2001 From: Patrick Schratz Date: Sat, 11 Jan 2025 07:10:36 +0100 Subject: [PATCH] [release/v2.8] Improve error on config loading (#4024) (#4698) Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com> --- server/pipeline/create.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/pipeline/create.go b/server/pipeline/create.go index 9a60299ff..52eba4d79 100644 --- a/server/pipeline/create.go +++ b/server/pipeline/create.go @@ -88,7 +88,7 @@ func Create(ctx context.Context, _store store.Store, repo *model.Repo, pipeline return nil, ErrFiltered } else if configFetchErr != nil { log.Debug().Str("repo", repo.FullName).Err(configFetchErr).Msgf("error while fetching config '%s' in '%s' with user: '%s'", repo.Config, pipeline.Ref, repoUser.Login) - return nil, updatePipelineWithErr(ctx, _forge, _store, pipeline, repo, repoUser, fmt.Errorf("pipeline definition not found in %s", repo.FullName)) + return nil, updatePipelineWithErr(ctx, _forge, _store, pipeline, repo, repoUser, fmt.Errorf("could not load config from forge: %w", err)) } pipelineItems, parseErr := parsePipeline(_forge, _store, pipeline, repoUser, repo, forgeYamlConfigs, nil)