Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

Commit

Permalink
batch: give reason for failure to get aliases from REST API
Browse files Browse the repository at this point in the history
e.g. if the username/password is wrong, it needs to be clear to the user
that authentication failed.
  • Loading branch information
Adam Spiers committed Aug 4, 2015
1 parent 183dd52 commit d6e9a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/crowbar_batch
Expand Up @@ -135,7 +135,7 @@ def get_aliases
get_json("/")
end

abort "Couldn't get aliases" unless status == 200
abort "Couldn't get aliases: #{status}: #{body}" unless status == 200

host_by_alias = {}
alias_by_host = {}
Expand Down

0 comments on commit d6e9a9a

Please sign in to comment.