Skip to content

Commit

Permalink
improving exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tymondesigns committed Feb 21, 2015
1 parent acb10f5 commit 6c7b054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Exceptions/JWTException.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct($message = 'An error occured', $statusCode = null)
{
parent::__construct($message);

if ($statusCode) {
if (! is_null($statusCode)) {
$this->setStatusCode($statusCode);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Exceptions/TokenBlacklistedException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ class TokenBlacklistedException extends TokenInvalidException
/**
* @var integer
*/
protected $statusCode = 400;
protected $statusCode = 401;
}

0 comments on commit 6c7b054

Please sign in to comment.