Log also whole data.
authorRoland Haeder <roland@mxchange.org>
Sat, 15 Feb 2014 22:21:35 +0000 (23:21 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 15 Feb 2014 22:21:35 +0000 (23:21 +0100)
Signed-off-by: Roland H├Ąder <roland@mxchange.org>
inc/classes/exceptions/base64/class_Base64EncodingModuloException.php

index 2aed900..b4ce211 100644 (file)
@@ -31,10 +31,11 @@ class Base64EncodingModuloException extends FrameworkException {
         */
        public function __construct (array $messageArray, $code) {
                // Construct message
-               $message = sprintf('[%s:%d] Data length %s modulo 4 is not zero.',
+               $message = sprintf('[%s:%d] Data length %s modulo 4 is not zero: data=%s',
                        $messageArray[0]->__toString(),
                        $this->getLine(),
-                       strlen($messageArray[1])
+                       strlen($messageArray[1]),
+                       $messageArray[1]
                );
 
                // Call parent exception constructor