Skip to content

Tags::CreateService: missing handler for `NoRepositoryError`

Problem

When provided tag information is incorrect, Gitaly returns a Could not update refs/tags/%s. Please refresh and try again. error. This error is not handled by Rails and causes a 500 error.

Solution

Add a handler for this exception and return a user-friendly error message instead.