Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Only Directus Exception calls getErrorCode
Browse files Browse the repository at this point in the history
Ref:
  • Loading branch information
wellingguzman committed Nov 21, 2018
1 parent d1498b1 commit f6f3a7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoints/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ public function ssoServiceCallback(Request $request, Response $response)
$urlParams['attributes'] = $e->getAttributes();
}

$urlParams['code'] = $e->getErrorCode();
$urlParams['code'] = ($e instanceof \Directus\Exception\Exception) ? $e->getErrorCode() : 0;
$urlParams['error'] = true;
}

Expand Down

0 comments on commit f6f3a7a

Please sign in to comment.