Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Commit

Permalink
fix: more detailed error log
Browse files Browse the repository at this point in the history
  • Loading branch information
iwilltry42 committed Sep 13, 2024
1 parent 75ecaaa commit 58ed962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/datastore/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ func (s *Datastore) Ingest(ctx context.Context, datasetID string, content []byte

docs, err := ingestionFlow.Run(ctx, bytes.NewReader(content))
if err != nil {
slog.Error("Failed to load documents", "error", err)
return nil, fmt.Errorf("failed to load documents: %w", err)
slog.Error("Ingestion Flow failed", "error", err, "filename", filename)
return nil, fmt.Errorf("ingestion Flow failed for file %q: %w", filename, err)
}

if len(docs) == 0 {
Expand Down

0 comments on commit 58ed962

Please sign in to comment.