dont log fatal

This commit is contained in:
Bruce MacDonald 2023-08-15 10:39:59 -03:00
parent 2c8b680b03
commit 18f2cb0472

View file

@ -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