Stop logging CheckPath returns error: context canceled (#21064)

We should only log CheckPath errors if they are not simply due to
context cancellation - and we should add a little more context to the
error message.

Fix #20709

Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
zeripath
2022-10-10 21:54:30 +01:00
repo.diff.committed_by GitHub
repo.diff.parent 94037ada24
repo.diff.commit 3ccebf7f40
repo.diff.stats_desc%!(EXTRA int=2, int=2, int=4)

repo.diff.view_file

@@ -1178,8 +1178,6 @@ func GetDiff(gitRepo *git.Repository, opts *DiffOptions, files ...string) (*Diff
} else if language, has := attrs["gitlab-language"]; has && language != "unspecified" && language != "" {
diffFile.Language = language
}
} else {
log.Error("Unexpected error: %v", err)
}
}