Skip to content

git: Simplify handling of Gitaly::FindCommitsError

John Cai requested to merge jc/modify-find-commits-error-handling into master

What does this MR do and why?

git: Simplify handling of Gitaly::FindCommitsError

Before in !139611 (merged), we split out handling of a Gitaly::FindCommitsError by looking into the specific type of error. These are internal details to Gitaly however, and there is no need to handle these errors with that level of granularity since its logically the same error and we don't want to leak those errors from Gitaly into Rails as they are more internal details to Gitaly. Let's simplify the handling to just look for Gitaly::FindCommitsError.

Edited by John Cai

Merge request reports