die() expanded with __METHOD__
authorRoland Häder <roland@mxchange.org>
Thu, 17 May 2012 19:07:33 +0000 (19:07 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 17 May 2012 19:07:33 +0000 (19:07 +0000)
inc/classes/main/menu/class_BaseMenu.php
inc/classes/main/parser/xml/class_XmlParser.php
inc/loader/class_ClassLoader.php

index 32a57c0..c41bdcb 100644 (file)
@@ -64,7 +64,7 @@ class BaseMenu extends BaseFrameworkSystem {
 
                // Render it here
                $this->getTemplateInstance()->renderXmlContent($menuContent);
-               //die('!OK');
+               //die(__METHOD__ . ':!OK');
        }
 
        /**
index 6fb429a..dab9f3a 100644 (file)
@@ -102,7 +102,7 @@ class XmlParser extends BaseParser implements Parseable {
                // Now parse the XML tree
                if (!xml_parse($xmlParser, $content)) {
                        // Error found in XML!
-                       //* DEBUG: */ die('<pre>'.htmlentities($content).'</pre>');
+                       //* DEBUG: */ die(__METHOD__ . ':<pre>'.htmlentities($content).'</pre>');
                        throw new XmlParserException(array($this, $xmlParser), self::EXCEPTION_XML_PARSER_ERROR);
                } // END - if
 
index f5cc2af..4b46ffa 100644 (file)
@@ -271,7 +271,7 @@ class ClassLoader {
                // If the basePath is false it is invalid
                if ($basePath2 === false) {
                        /* @todo: Do not die here. */
-                       die('Cannot read ' . $basePath . ' !');
+                       die(__METHOD__ . ':Cannot read ' . $basePath . ' !');
                } else {
                        // Set base path
                        $basePath = $basePath2;