diff options
author | Nick Kipling <nkipling@gitlab.com> | 2019-07-02 16:12:45 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-07-02 16:12:45 +0300 |
commit | f01127ad25191913b3c399ee185f1c9f7034198b (patch) | |
tree | e6cfd00d9658b9b1424746e4e1c14df43cf5ecf0 /app/controllers/projects/registry | |
parent | a7cc29c89f71c8f80806115a70c92750d4350a92 (diff) |
Registry component now includes error messages
Includes changes to the Vue container registry component to support
the display of an empty message and error message when invalid
characters are found in the group, project or branch name.
repositories/index.html.haml has been changed to remove the content
and place into Vue component.
Diffstat (limited to 'app/controllers/projects/registry')
-rw-r--r-- | app/controllers/projects/registry/repositories_controller.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/projects/registry/repositories_controller.rb b/app/controllers/projects/registry/repositories_controller.rb index 6d60117c37d..e205e2fd4f8 100644 --- a/app/controllers/projects/registry/repositories_controller.rb +++ b/app/controllers/projects/registry/repositories_controller.rb @@ -46,6 +46,8 @@ module Projects repository.save! if repository.has_tags? end end + rescue ContainerRegistry::Path::InvalidRegistryPathError + @character_error = true end end end |