Skip to content

Commit

Permalink
Returning error
Browse files Browse the repository at this point in the history
  • Loading branch information
pastuxso committed Aug 12, 2024
1 parent 171614c commit 169095f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkg/project/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func (p *Project) loadFromDirectory(
if !ignored {
p.logger.Warn("path error", zap.String("path", path), zap.Error(err))
}
ignored = true
return err
default:
return err
}
Expand All @@ -403,7 +403,10 @@ func (p *Project) loadFromDirectory(

return nil
})
if err != nil {

switch err.(type) {
case nil, *os.PathError:
default:
p.send(ctx, eventc, LoadEvent{
Type: LoadEventError,
Data: LoadEventErrorData{Err: err},
Expand Down

0 comments on commit 169095f

Please sign in to comment.