Skip to content

Commit

Permalink
Typo: same exception was used in two catch lines. Changed to use Http…
Browse files Browse the repository at this point in the history
…Exception interface.
  • Loading branch information
Justas Butkus committed Feb 8, 2015
1 parent 35fa168 commit 4106f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/class-terminus-command.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public static function request($realm, $uuid, $path = FALSE, $method = 'GET', $o
} catch( Guzzle\Http\Exception\BadResponseException $e ) {
$response = $e->getResponse();
\Terminus::error("%s", $response->getBody(TRUE) );
} catch( Guzzle\Http\Exception\BadResponseException $e ) {
} catch( Guzzle\Http\Exception\HttpException $e ) {
$request = $e->getRequest();
\Terminus::error("Request %s had failed: %s", (string)$request, $e->getMessage() );
} catch( Exception $e ) {
Expand Down

0 comments on commit 4106f74

Please sign in to comment.