Skip to content

Commit

Permalink
Merge pull request #1758 from jsuchome/error-messages-master
Browse files Browse the repository at this point in the history
upgrade: Mention the name of failed node in the error message
  • Loading branch information
Jiří Suchomel authored Jan 4, 2019
2 parents 71dce99 + 3bd8cab commit 8773d75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crowbar_framework/app/models/api/node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def reboot

ssh_status = @node.ssh_cmd("/sbin/reboot")
if ssh_status[0] != 200
Api::Upgrade.raise_node_upgrade_error("Failed to reboot the machine. Could not ssh.")
Api::Upgrade.raise_node_upgrade_error("Failed to reboot node #{@node.name}. Could not ssh.")
end

wait_for_ssh_state(:down, "reboot")
Expand Down

0 comments on commit 8773d75

Please sign in to comment.