From: Devops Date: Fri, 26 May 2017 08:05:10 +0000 (+0100) Subject: bin/ovh-api X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=366accaddc7b661678db70738a440d640769a066;p=nb.git bin/ovh-api --- diff --git a/bin/ovh-api b/bin/ovh-api index 95556afa..cb4028d2 100755 --- a/bin/ovh-api +++ b/bin/ovh-api @@ -107,7 +107,7 @@ sub _query { eval { $response = $Api->rawCall(path=>$url,method=>($method||'GET'),body=>$body); }; - die "$NAME: Connection failed $! $@" unless $response; + die "$NAME: Connection failed" unless $response; if ($response->isFailure()) { die "$NAME: ERR: Connection failed" if $response->error() =~ /Internal Server Error/; die "$NAME: ERR: ".$response->error(); @@ -130,7 +130,7 @@ sub _query { $response = $Api->rawCall(path=>$url.'/'.$id,method=>($method||'GET'),body=>{}); }; - die "$NAME: Query failed $! $@" unless $response; + die "$NAME: Query failed" unless $response; die "$NAME: ERR: Connection failed" if $response->error() =~ /Internal Server Error/; die "$NAME: ERR: ".$response->error() if $response->isFailure();