瀏覽代碼

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;
 			return true;
 		} catch (PHPMailer\PHPMailer\Exception $e) {
 		} catch (PHPMailer\PHPMailer\Exception $e) {
 			$this->setLoggerChannel('Email')->error($e);
 			$this->setLoggerChannel('Email')->error($e);
-			$this->setResponse(500, $e->getMessage());
+			$this->setResponse(500, $e->getMessage(), $this->config['phpmOriginalDebug']);
 			return false;
 			return false;
 		}
 		}
 		return false;
 		return false;