Skip to content

Commit

Permalink
going back to looping errors
Browse files Browse the repository at this point in the history
  • Loading branch information
benwaples committed Feb 3, 2024
1 parent 3449430 commit 2514e78
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/api/src/daemons/datapipe/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (

var (
ErrAnalysisFailed = errors.New("analysis failed")
ErrAnalysisPartiallyCompleted = errors.New("analysis partially failed")
ErrAnalysisPartiallyCompleted = errors.New("analysis partially completed")
)

func RunAnalysisOperations(ctx context.Context, db database.Database, graphDB graph.Database, _ config.Configuration) error {
Expand Down Expand Up @@ -103,7 +103,9 @@ func RunAnalysisOperations(ctx context.Context, db database.Database, graphDB gr
}

if len(collectedErrors) > 0 {
log.Errorf("Analysis errors encountered: %v", errors.Join(collectedErrors...))
for _, err := range collectedErrors {
log.Errorf("Analysis error encountered: %v", err)
}
}

if adFailed && azureFailed && agiFailed && dataQualityFailed {
Expand Down

0 comments on commit 2514e78

Please sign in to comment.