gitaly: Rename `UnknownRefs` error to `ReferenceNotFoundError`
To differentiate Gitatly RPC errors, structured errors with embedded error details are returned to clients. When a reference is not found in a repository, the `ReferenceNotFoundError` detail is used. GitLab Rails currently maps this error detail to the `UnknownRefs` error. Rename the error to `ReferenceNotFoundError` to better correlate with the RPC error detail.
显示
- lib/gitlab/git.rb 9 个添加, 1 个删除lib/gitlab/git.rb
- lib/gitlab/git/merge_base.rb 1 个添加, 1 个删除lib/gitlab/git/merge_base.rb
- lib/gitlab/git/repository.rb 1 个添加, 1 个删除lib/gitlab/git/repository.rb
- lib/gitlab/git/wraps_gitaly_errors.rb 14 个添加, 1 个删除lib/gitlab/git/wraps_gitaly_errors.rb
- lib/gitlab/gitaly_client/ref_service.rb 1 个添加, 1 个删除lib/gitlab/gitaly_client/ref_service.rb
- spec/lib/gitlab/git/merge_base_spec.rb 1 个添加, 1 个删除spec/lib/gitlab/git/merge_base_spec.rb
- spec/lib/gitlab/git/wraps_gitaly_errors_spec.rb 31 个添加, 0 个删除spec/lib/gitlab/git/wraps_gitaly_errors_spec.rb
- spec/lib/gitlab/gitaly_client/ref_service_spec.rb 2 个添加, 1 个删除spec/lib/gitlab/gitaly_client/ref_service_spec.rb
加载中
想要评论请 注册 或 登录