Skip to content

Commit

Permalink
added log message for xhr timeout (#1928)
Browse files Browse the repository at this point in the history
  • Loading branch information
harpere authored and jaiminpanchal27 committed Dec 6, 2017
1 parent c2ef33b commit 87bfe40
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ajax.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ export function ajaxBuilder(timeout = 3000) {
}
}
};
x.ontimeout = function () {
utils.logError(' xhr timeout after ', x.timeout, 'ms');
};
}

if (method === 'GET' && data) {
Expand Down

0 comments on commit 87bfe40

Please sign in to comment.