summaryrefslogtreecommitdiff
path: root/model
diff options
context:
space:
mode:
Diffstat (limited to 'model')
-rw-r--r--model/database.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/model/database.go b/model/database.go
index 265b438..22a924a 100644
--- a/model/database.go
+++ b/model/database.go
@@ -52,7 +52,10 @@ func InjectTestRecipes() {
recipes := RecipeTestData()
for _, recipe := range recipes {
- recipe.Create()
+ err := recipe.Create()
+ if err != nil {
+ log.Fatalf("Failed to inject test recipe: %v\n", err)
+ }
}
}