Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle the error of a missing blob object fix #19530 #19552

Merged
merged 16 commits into from
May 2, 2022
3 changes: 3 additions & 0 deletions routers/web/repo/compare.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,9 @@ func setCsvCompareContext(ctx *context.Context) {
if err == errTooLarge {
return CsvDiffResult{nil, err.Error()}
}
if err != nil {
return CsvDiffResult{nil, "csv diff error"}
}

sections, err := gitdiff.CreateCsvDiff(diffFile, baseReader, headReader)
if err != nil {
Expand Down