mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11279] Log error in console
PHPBB-11279
This commit is contained in:
parent
a9c9448ebb
commit
67053d0b4e
1 changed files with 3 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue