]> git.mxchange.org Git - shipsimu.git/blobdiff - inc/classes/exceptions/main/class_InvalidCommandException.php
Re-added with access protection
[shipsimu.git] / inc / classes / exceptions / main / class_InvalidCommandException.php
index 1d53b72c2f7fcb6c4a7eda9a3dad461c5e2593e6..9a1e9e2ec4b8feaae6f3c4324719f8e46c6dbd8f 100644 (file)
@@ -31,10 +31,11 @@ class InvalidCommandException extends FrameworkException {
         */
        public function __construct (array $msgArray, $code) {
                // Add a message around the missing class
-               $message = sprintf("[%s:%d] Invalid command <span id=\"exception_reason\">%s</span> detected.",
+               $message = sprintf("[%s:%d] Invalid command <span id=\"exception_reason\">%s (class %s)</span> detected.",
                        $msgArray[0]->__toString(),
                        $this->getLine(),
-                       $msgArray[1]
+                       $msgArray[1],
+                       $msgArray[0]->getClassName()
                );
 
                // Call parent constructor