From 18f2cb04722900ecac2ed2d8a483f22386c62551 Mon Sep 17 00:00:00 2001 From: Bruce MacDonald Date: Tue, 15 Aug 2023 10:39:59 -0300 Subject: [PATCH] dont log fatal --- server/images.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/images.go b/server/images.go index 494f927e..960f2d58 100644 --- a/server/images.go +++ b/server/images.go @@ -505,7 +505,7 @@ func embeddingLayers(e EmbeddingParams) ([]*LayerReader, error) { // this will be used to check if we already have embeddings for a file modelInfo, err := os.Stat(e.model) if err != nil { - log.Fatalf("Error getting file info: %s", err) + return nil, fmt.Errorf("failed to get model file info: %v", err) } addedFiles := make(map[string]bool) // keep track of files that have already been added