mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-30 13:50:42 -05:00
feat: Add recipe as ingredient (#4800)
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
ff42964537
commit
60d9294861
@@ -94,6 +94,12 @@ class RecipeController(BaseRecipeController):
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_400_BAD_REQUEST, detail=ErrorResponse.respond(message="Recipe already exists")
|
||||
)
|
||||
elif thrownType == exceptions.RecursiveRecipe:
|
||||
self.logger.error("Recursive Recipe Link Error on recipe controller action")
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_400_BAD_REQUEST,
|
||||
detail=ErrorResponse.respond(message=self.t("exceptions.recursive-recipe-link")),
|
||||
)
|
||||
elif thrownType == exceptions.SlugError:
|
||||
self.logger.error("Failed to generate a valid slug from recipe name")
|
||||
raise HTTPException(
|
||||
|
||||
Reference in New Issue
Block a user