Commit 18f2cb04 authored by Bruce MacDonald's avatar Bruce MacDonald
Browse files

dont log fatal

parent 2c8b680b
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment