From acd862cac3e737fd88eed8e35dd30b2d376620d9 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Sun, 11 Aug 2024 12:05:10 +0200 Subject: [PATCH] Improve error on config loading (#4024) --- 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 2692d1117..0e2d79e58 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)