# HG changeset patch # User Marcin Kuzminski # Date 2018-01-18 17:55:39 # Node ID a15e932373c549ce07838cee4f09d7ac528e44da # Parent 2b695b6e6d00b48300a5758cfe38f5591223a73a pull-requests: don't report abort type of ajax requests as errors. diff --git a/rhodecode/templates/pullrequests/pullrequest.mako b/rhodecode/templates/pullrequests/pullrequest.mako --- a/rhodecode/templates/pullrequests/pullrequest.mako +++ b/rhodecode/templates/pullrequests/pullrequest.mako @@ -313,9 +313,12 @@ loadRepoRefDiffPreview._currentRequest = $.get(url) .error(function(data, textStatus, errorThrown) { - alert( - "Error while processing request.\nError code {0} ({1}).".format( - data.status, data.statusText)); + if (textStatus !== 'abort') { + alert( + "Error while processing request.\nError code {0} ({1}).".format( + data.status, data.statusText)); + } + }) .done(function(data) { loadRepoRefDiffPreview._currentRequest = null;