fix exception throwing
authorMichael J. Rubinsky <mrubinsk@horde.org>
Wed, 30 Jun 2010 21:28:12 +0000 (17:28 -0400)
committerMichael J. Rubinsky <mrubinsk@horde.org>
Thu, 1 Jul 2010 00:11:39 +0000 (20:11 -0400)
framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php

index 3e20395..b97783f 100644 (file)
@@ -86,7 +86,7 @@ class Horde_Service_Twitter_Request_Oauth extends Horde_Service_Twitter_Request
         }
 
         if ($response->code >= 400 && $response->code <= 500) {
-            throw new Horde_Service_Twitter_Exception($body);
+            throw new Horde_Service_Twitter_Exception($response->getBody());
         }
         return $response->getBody();
     }