Commit daceafc4 authored by Matija Čupić's avatar Matija Čupić

Replace Exception with ArgumentError

parent c407d611
......@@ -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?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment