mirror of
https://github.com/elyby/oauth2-server.git
synced 2026-04-08 06:57:00 +05:30
Expose parameter passed to exceptions
This commit is contained in:
@@ -31,7 +31,9 @@ class ServerErrorException extends OAuthException
|
||||
*/
|
||||
public function __construct($parameter = null)
|
||||
{
|
||||
$this->parameter = parameter;
|
||||
$parameter = is_null($parameter) ? 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.' : $parameter;
|
||||
parent::__construct($parameter);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user