From 55c3fb677d94c7624588618ee6ad1df12e9a12ab Mon Sep 17 00:00:00 2001 From: mitchell Date: Tue, 9 Jan 2024 13:14:43 -0500 Subject: [PATCH] Localize an error when fetching a platform recipe. --- internal/runners/export/recipe.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/internal/runners/export/recipe.go b/internal/runners/export/recipe.go index 34c32411a3..fb078ce467 100644 --- a/internal/runners/export/recipe.go +++ b/internal/runners/export/recipe.go @@ -99,5 +99,10 @@ func fetchRecipe(proj *project.Project, commitID strfmt.UUID, platform string) ( commitID = *dcommitID } - return model.FetchRawRecipeForCommitAndPlatform(commitID, proj.Owner(), proj.Name(), platform) + recipe, err := model.FetchRawRecipeForCommitAndPlatform(commitID, proj.Owner(), proj.Name(), platform) + if err != nil { + return "", locale.WrapError(err, "err_fetch_recipe", "Unable to fetch recipe") + } + + return recipe, nil }