diff options
author | James Lopez <james@jameslopez.es> | 2016-12-20 17:52:27 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-12-20 17:52:27 +0100 |
commit | b82fdf6257255b720526ccef716759892e88de09 (patch) | |
tree | 52c4adbaa69a9e4b4174b6efc0f817ffda64d815 /app/models/namespace.rb | |
parent | ad1a1d976c877eca16858368db0c5b3ef800db8b (diff) | |
download | gitlab-ce-b82fdf6257255b720526ccef716759892e88de09.tar.gz |
Fix error 500 renaming group. Also added specs and changelog.
Diffstat (limited to 'app/models/namespace.rb')
-rw-r--r-- | app/models/namespace.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/namespace.rb b/app/models/namespace.rb index fd42f2328d8..b52f08c7081 100644 --- a/app/models/namespace.rb +++ b/app/models/namespace.rb @@ -98,7 +98,7 @@ class Namespace < ActiveRecord::Base def move_dir if any_project_has_container_registry_tags? - raise Exception.new('Namespace cannot be moved, because at least one project has tags in container registry') + raise Gitlab::UpdatePathError.new('Namespace cannot be moved, because at least one project has tags in container registry') end # Move the namespace directory in all storages paths used by member projects @@ -111,7 +111,7 @@ class Namespace < ActiveRecord::Base # if we cannot move namespace directory we should rollback # db changes in order to prevent out of sync between db and fs - raise Exception.new('namespace directory cannot be moved') + raise Gitlab::UpdatePathError.new('namespace directory cannot be moved') end end |