Skip to content
Snippets Groups Projects
user avatar
Georges Racinet authored
This is a more focused version of 009b7fb9f27a (that will probably be replaced
by the present changeset).

Factorizing more is subject to the problem that different errors (or no error)
may have to be returned in other services/methods. OTOH we can expect all
creation methods to have consistent behaviour, and it's actually become more the
case with Gitaly≥14.6, in which all repository creation methods return the
`ALREADY_EXISTS` gRPC error (used to be a mixed of two different errors and no
error before that).

Also the message does not have to repeat information about the gRPC method that
was actually called, since the proper response type is used (and caller-side logging
will include the method anyway).
b1ef4099
History
Name Last commit Last update