diff options
Diffstat (limited to 'controller')
| -rw-r--r-- | controller/apicontroller.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/apicontroller.php b/controller/apicontroller.php index aa21429..a4361ef 100644 --- a/controller/apicontroller.php +++ b/controller/apicontroller.php @@ -18,6 +18,7 @@ use \OCP\AppFramework\Http\JSONResponse; use \OCA\Grauphel\Lib\NoteStorage; use \OCA\Grauphel\Lib\OAuth; +use \OCA\Grauphel\Lib\OAuthException; use \OCA\Grauphel\Lib\Dependencies; use \OCA\Grauphel\Lib\Response\ErrorResponse; @@ -79,7 +80,7 @@ class ApiController extends Controller $token = $deps->tokens->load('access', $provider->token); $username = $token->user; - } catch (\OAuth_Exception $e) { + } catch (OAuthException $e) { return new ErrorResponse($e->getMessage()); } catch (\OAuthException $e) { if ($e->getCode() != OAUTH_PARAMETER_ABSENT) { |
