[evolvis-commits] r18246: debugging pending merges:↵ Thorsten Glaser 2012-04-05 Error::setError displays backtraces if enabled
mirabilos at evolvis.org
mirabilos at evolvis.org
Thu Apr 5 23:01:52 CEST 2012
Author: mirabilos
Date: 2012-04-05 23:01:52 +0200 (Thu, 05 Apr 2012)
New Revision: 18246
Modified:
trunk/gforge_base/evolvisforge-5.1/src/common/include/Error.class.php
trunk/gforge_base/evolvisforge-5.1/src/www/themes/css/fusionforge.css
Log:
debugging pending merges:
Thorsten Glaser 2012-04-05 Error::setError displays backtraces if enabled
Modified: trunk/gforge_base/evolvisforge-5.1/src/common/include/Error.class.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/common/include/Error.class.php 2012-04-05 21:01:47 UTC (rev 18245)
+++ trunk/gforge_base/evolvisforge-5.1/src/common/include/Error.class.php 2012-04-05 21:01:52 UTC (rev 18246)
@@ -71,6 +71,14 @@
* @param int The error code
*/
function setError($string, $code=ERROR__UNCLASSIFIED_ERROR) {
+ global $sysdebug_enable;
+
+ if (util_ifsetor($sysdebug_enable) &&
+ forge_get_config('sysdebug_backtraces')) {
+ ffDebug('error', get_class($this) . '::setError("' .
+ $string . '", ' . $code . ')',
+ debug_string_backtrace());
+ }
$this->error_state=true;
$this->error_message=$string;
$this->error_code=$code;
Modified: trunk/gforge_base/evolvisforge-5.1/src/www/themes/css/fusionforge.css
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/themes/css/fusionforge.css 2012-04-05 21:01:47 UTC (rev 18245)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/themes/css/fusionforge.css 2012-04-05 21:01:52 UTC (rev 18246)
@@ -755,6 +755,7 @@
border-width: 0px;
padding: 0px;
color: red;
+ text-align: left;
}
#ffErrors .warning {
More information about the evolvis-commits
mailing list