Skip to content

Commit

Permalink
Merge pull request #953 from Shopify/fix-bug-in-RestartAPIError
Browse files Browse the repository at this point in the history
Fix bug in RestartAPIError
  • Loading branch information
saunderst authored Apr 23, 2024
2 parents 9732191 + 0010b32 commit 70514e4
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 70514e4

Please sign in to comment.