From: Roland Häder Date: Thu, 17 May 2012 19:07:33 +0000 (+0000) Subject: die() expanded with __METHOD__ X-Git-Url: https://git.mxchange.org/?p=core.git;a=commitdiff_plain;h=886541aecfdee3aa7cc62c14f3e8aaca0b52fff4 die() expanded with __METHOD__ --- diff --git a/inc/classes/main/menu/class_BaseMenu.php b/inc/classes/main/menu/class_BaseMenu.php index 32a57c06..c41bdcb7 100644 --- a/inc/classes/main/menu/class_BaseMenu.php +++ b/inc/classes/main/menu/class_BaseMenu.php @@ -64,7 +64,7 @@ class BaseMenu extends BaseFrameworkSystem { // Render it here $this->getTemplateInstance()->renderXmlContent($menuContent); - //die('!OK'); + //die(__METHOD__ . ':!OK'); } /** diff --git a/inc/classes/main/parser/xml/class_XmlParser.php b/inc/classes/main/parser/xml/class_XmlParser.php index 6fb429ab..dab9f3af 100644 --- a/inc/classes/main/parser/xml/class_XmlParser.php +++ b/inc/classes/main/parser/xml/class_XmlParser.php @@ -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('
'.htmlentities($content).'
'); + //* DEBUG: */ die(__METHOD__ . ':
'.htmlentities($content).'
'); throw new XmlParserException(array($this, $xmlParser), self::EXCEPTION_XML_PARSER_ERROR); } // END - if diff --git a/inc/loader/class_ClassLoader.php b/inc/loader/class_ClassLoader.php index f5cc2afd..4b46ffa8 100644 --- a/inc/loader/class_ClassLoader.php +++ b/inc/loader/class_ClassLoader.php @@ -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;