Explorar o código

added debug info to exception for email test

CauseFX %!s(int64=4) %!d(string=hai) anos
pai
achega
4ef7250357
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      api/plugins/php-mailer/plugin.php

+ 1 - 1
api/plugins/php-mailer/plugin.php

@@ -183,7 +183,7 @@ class PhpMailer extends Organizr
 			return true;
 		} catch (PHPMailer\PHPMailer\Exception $e) {
 			$this->setLoggerChannel('Email')->error($e);
-			$this->setResponse(500, $e->getMessage());
+			$this->setResponse(500, $e->getMessage(), $this->config['phpmOriginalDebug']);
 			return false;
 		}
 		return false;