Skip to content

Commit

Permalink
error handle fix to check for instance not found err
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamHaffar committed Oct 4, 2023
1 parent 6619235 commit 37957cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/provisioning/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ func (s *Service) Init(ctx context.Context) error {
if err == nil {
multierr = cerrors.Errorf("pipelines with ID %q will be skipped: %w", pl.ID, ErrDuplicatedAPIPipelineID)
existingPipelinesFromAPI = append(existingPipelinesFromAPI, i)
} else {
} else if err != pipeline.ErrInstanceNotFound {
multierr = cerrors.Errorf("could not get pipeline with ID %v: %w", pl.ID, err)
}
}
Expand Down

0 comments on commit 37957cd

Please sign in to comment.