mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-16 22:42:57 +02:00
[ticket/11279] Log error in console
PHPBB-11279
This commit is contained in:
@ -256,6 +256,9 @@ phpbb.ajaxify = function(options) {
|
||||
* Handler for AJAX errors
|
||||
*/
|
||||
function errorHandler(jqXHR, textStatus, errorThrown) {
|
||||
if (console && console.log) {
|
||||
console.log('AJAX error. status: ' + textStatus + ', message: ' + errorThrown);
|
||||
}
|
||||
phpbb.clearLoadingTimeout();
|
||||
var errorText = false;
|
||||
if (typeof errorThrown === 'string' && errorThrown.length > 0) {
|
||||
|
Reference in New Issue
Block a user