Skip to content

Commit

Permalink
Add message
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Jan 16, 2015
1 parent 561d0b3 commit b597179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZfrOAuth2/Server/ResourceServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getAccessToken(HttpRequest $request, $scopes = [])
$token = $this->accessTokenService->getToken($token);

if ($token === null || !$this->isTokenValid($token, $scopes)) {
throw new InvalidAccessTokenException();
throw new InvalidAccessTokenException('Access token has expired or has been deleted');
}

return $token;
Expand Down

0 comments on commit b597179

Please sign in to comment.