return error with context
authorAlan Knowles <alan@roojs.com>
Thu, 22 Jul 2021 06:52:18 +0000 (14:52 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 22 Jul 2021 06:52:18 +0000 (14:52 +0800)
Mail/RFC822.php

index a001197..3a48a84 100644 (file)
@@ -459,7 +459,7 @@ class Mail_RFC822 {
 
             // And validate the group part of the name.
             if (!$this->_validatePhrase($groupname)){
-                $this->error = 'Group name did not validate.';
+                $this->error = "Group name did not validate: '{$groupname}'";
                 return false;
             } else {
                 // Don't include groups if we are not nesting