From: Roland Häder Date: Thu, 30 Apr 2009 19:26:58 +0000 (+0000) Subject: catch() blocks should not be left empty X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5bf22e282d21c7490625fc0e54bc0cd23679cfa7;p=core.git catch() blocks should not be left empty --- diff --git a/inc/classes/main/console/class_ConsoleTools.php b/inc/classes/main/console/class_ConsoleTools.php index 855cd0c3..e97a5f6e 100644 --- a/inc/classes/main/console/class_ConsoleTools.php +++ b/inc/classes/main/console/class_ConsoleTools.php @@ -71,7 +71,13 @@ class ConsoleTools extends BaseFrameworkSystem { )); } } catch (FrameworkException $e) { - // Do nothing here + // Output debug message + $helper->debugOutput(sprintf("[%s:] Problem while resolving own IP address: [%s|%s]:%s", + $helper->__toString(), + $e->__toString(), + $e->getHexCode(), + $e->getMessage() + )); } // Return the IP address