diff --git a/freebox/utils/RestAuth.php b/freebox/utils/RestAuth.php index b2f68dc..0db9ce5 100644 --- a/freebox/utils/RestAuth.php +++ b/freebox/utils/RestAuth.php @@ -64,7 +64,7 @@ class RestAuth extends alphayax\utils\Rest { protected function checkResponse(){ $response = $this->getCurlResponse(); if( false === $response['success']){ - throw new \Exception( $response['success']); + throw new \Exception( $response['msg']); } }