X-Git-Url: https://git.cweiske.de/grauphel.git/blobdiff_plain/92938f0e591286b67a752af441e55626155af524..92943b3dbac9db26d95500e129bd70475c376b1e:/controller/apicontroller.php 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) {