Skip to content

Commit

Permalink
fix bug in RestartAPIError
Browse files Browse the repository at this point in the history
  • Loading branch information
saunderst committed Apr 12, 2024
1 parent f1eb262 commit 0010b32
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/krane/restart_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ class RestartTask
class FatalRestartError < FatalDeploymentError; end

class RestartAPIError < FatalRestartError
def initialize(deployment_name, response)
def initialize(deployment_name, message)
super("Failed to restart #{deployment_name}. " \
"API returned non-200 response code (#{response.code})\n" \
"Response:\n#{response.body}")
"Error:\n#{message}")
end
end

Expand Down

0 comments on commit 0010b32

Please sign in to comment.