Skip to content

Commit

Permalink
Localize an error when fetching a platform recipe.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchell-as committed Jan 9, 2024
1 parent bb5c00f commit 55c3fb6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/runners/export/recipe.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 55c3fb6

Please sign in to comment.