Reworked error printing for non "200" code responses from Strava

This commit is contained in:
Justin Foell
2013-07-05 17:54:12 -05:00
parent a1a213f1b7
commit dfc4ca81c1
2 changed files with 10 additions and 2 deletions
-1
View File
@@ -60,7 +60,6 @@ class WPStrava_API {
return $response;
if ( $response['response']['code'] != 200 ) {
die($url);
//see if there's useful info in the body
$body = json_decode( $response['body'] );
$error = '';