Do not email about OAuth exceptions.

This commit is contained in:
James Cole 2018-12-16 13:15:09 +01:00
parent 747602a9cb
commit 746bd2ce92

View File

@ -121,7 +121,7 @@ class Handler extends ExceptionHandler
// if the user wants us to mail:
if (true === $doMailError
// and if is one of these error instances
&& ($exception instanceof FireflyException || $exception instanceof ErrorException || $exception instanceof OAuthServerException)) {
&& ($exception instanceof FireflyException || $exception instanceof ErrorException)) {
$userData = [
'id' => 0,
'email' => 'unknown@example.com',