Skip to content

Commit

Permalink
Handle the error of a missing blob object
Browse files Browse the repository at this point in the history
  • Loading branch information
99rgosse committed Apr 29, 2022
1 parent 334707f commit 4b1b1d8
Showing 1 changed file with 3 additions and 0 deletions.
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

0 comments on commit 4b1b1d8

Please sign in to comment.