Преглед изворни кода

added debug info to exception for email test

CauseFX пре 3 година
родитељ
комит
4ef7250357
1 измењених фајлова са 1 додато и 1 уклоњено
  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;