Skip to content

Treat reference conflicts as InvalidArgument errors

The localrepo.GetReference is used to get a particular reference. Sometimes a repository already contains a reference which matches the pattern, in such scenarios, we throw an error.

This error is propagated back from the RPCs as an Internal grpc error. This shouldn't be the case, because this is more of a InvalidArgument error. We should catch and fix this, so it doesn't count towards our error budget.

Closes #5482 (closed)

Merge request reports