1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 22:57:14 +02:00

better Ajax Exception information output (via console)

This commit is contained in:
secretr
2012-02-25 11:18:15 +00:00
parent 2def760d08
commit 8b617ab084

View File

@@ -1,16 +1,14 @@
/*
* e107 website system
*
* Copyright (C) 2008-2009 e107 Inc (e107.org)
* Copyright (C) 2008-2012 e107 Inc (e107.org)
* Released under the terms and conditions of the
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
*
* e107 Javascript API
*
* $Source: /cvs_backup/e107_0.8/e107_files/jslib/e107.js.php,v $
* $Revision$
* $Date$
* $Author$
* $URL$
* $Id$
*
*/
@@ -2327,7 +2325,8 @@ Ajax.Updater = Class.create(Ajax.Updater, {
onException: function(request, e) {
//TODO handle exceptions
alert('e107Ajax Exception: ' + e);
//alert('e107Ajax Exception: ' + e);
if(window.console) window.console.log('e107Ajax Exception: ' + e);
}
}