예제 #1
0
 /**
  * The last error message as a string
  * @return string
  */
 function getLast()
 {
     $me =& Swift_Errors::getInstance();
     if (count($me->errors)) {
         $last =& $me->errors[count($me->errors) - 1];
         return $last->getMessage();
     }
 }