dont log fatal
This commit is contained in:
parent
2c8b680b03
commit
18f2cb0472
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue