Print the connect error.

This commit is contained in:
Daniel Nichter
2013-06-14 19:28:31 -07:00
parent 5bd7248c6c
commit 4e97201e34

View File

@@ -8107,7 +8107,8 @@ sub install {
die "Sorry, the API key $api_key is not valid. Please check the API key and try again.\n";
}
else {
die "Sorry, there was a problem connecting to the API. Please try again.\n";
my $err = $client->response->message || 'Unknown error';
die "Sorry, an error occured while verifying the API key: $err\n";
}
}