diff options
author | Matija Čupić <matteeyah@gmail.com> | 2017-12-05 15:56:30 +0300 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2017-12-05 15:56:30 +0300 |
commit | daceafc4402729f479d7ae578efc6f31d461e552 (patch) | |
tree | dd4f012bb53e19be3a254da7bfaec6ca7662a787 /app/services/clusters/create_service.rb | |
parent | c407d611a9549601c69dae2b45b4b9a49149dc60 (diff) |
Replace Exception with ArgumentError
Diffstat (limited to 'app/services/clusters/create_service.rb')
-rw-r--r-- | app/services/clusters/create_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/clusters/create_service.rb b/app/services/clusters/create_service.rb index f7927070dd7..0471b0f17a2 100644 --- a/app/services/clusters/create_service.rb +++ b/app/services/clusters/create_service.rb @@ -5,7 +5,7 @@ module Clusters def execute(access_token = nil) @access_token = access_token - raise Exception.new('Instance does not support multiple clusters') unless can_create_cluster? + raise ArgumentError.new('Instance does not support multiple clusters') unless can_create_cluster? create_cluster.tap do |cluster| ClusterProvisionWorker.perform_async(cluster.id) if cluster.persisted? |