소스 검색

added debug info to exception for email test

CauseFX 4 년 전
부모
커밋
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;