##// END OF EJS Templates
pull-requests: don't report abort type of ajax requests as errors.
marcink -
r2480:a15e9323 default
parent child Browse files
Show More
@@ -313,9 +313,12 b''
313
313
314 loadRepoRefDiffPreview._currentRequest = $.get(url)
314 loadRepoRefDiffPreview._currentRequest = $.get(url)
315 .error(function(data, textStatus, errorThrown) {
315 .error(function(data, textStatus, errorThrown) {
316 alert(
316 if (textStatus !== 'abort') {
317 "Error while processing request.\nError code {0} ({1}).".format(
317 alert(
318 data.status, data.statusText));
318 "Error while processing request.\nError code {0} ({1}).".format(
319 data.status, data.statusText));
320 }
321
319 })
322 })
320 .done(function(data) {
323 .done(function(data) {
321 loadRepoRefDiffPreview._currentRequest = null;
324 loadRepoRefDiffPreview._currentRequest = null;
General Comments 0
You need to be logged in to leave comments. Login now