Skip to content

Commit

Permalink
Merge pull request #30 from bookingcom/rhasini/remove-broken-symlinks
Browse files Browse the repository at this point in the history
[PIV-170] Remove reporting of broken symlinks
  • Loading branch information
ramyahasini authored Jul 17, 2020
2 parents 00e4e6b + 1daa4c0 commit c69c8a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,9 @@ func (c Configuration) resolvePath(pathFull string) (string, os.FileInfo) {

fileInfo, err := os.Stat(linkPath)
if err != nil {
logger.Error().Err(err).Msgf("error getting file stat for readLinked file: %v, %v", linkPath, pathFull)
if !os.IsNotExist(err) {
logger.Error().Err(err).Msgf("error getting file stat for readLinked file: %v, %v", linkPath, pathFull)
}
return "", nil
}
fi = fileInfo
Expand Down

0 comments on commit c69c8a0

Please sign in to comment.