

def parse_error(self):
    if (self.status == httplib.UNAUTHORIZED):
        data = self.parse_body()
        raise InvalidCredsError(((data['code'] + ': ') + data['message']))
    return self.body

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/joyent.py JoyentResponse.parse_error/original