Explorar el Código

added debug info to exception for email test

CauseFX hace 3 años
padre
commit
4ef7250357
Se han modificado 1 ficheros con 1 adiciones y 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;