Show More
@@ -260,9 +260,10 b'' | |||
|
260 | 260 | self.cachedDataSource[cacheKey] = data; |
|
261 | 261 | query.callback({results: data.results}); |
|
262 | 262 | }, |
|
263 |
error: function( |
|
|
264 | alert( | |
|
265 | "Error while fetching entries.\nError code {0} ({1}).".format(data.status, data.statusText)); | |
|
263 | error: function(jqXHR, textStatus, errorThrown) { | |
|
264 | var prefix = "Error while fetching entries.\n" | |
|
265 | var message = formatErrorMessage(jqXHR, textStatus, errorThrown, prefix); | |
|
266 | ajaxErrorSwal(message); | |
|
266 | 267 | } |
|
267 | 268 | }); |
|
268 | 269 | } |
@@ -312,11 +313,11 b'' | |||
|
312 | 313 | } |
|
313 | 314 | |
|
314 | 315 | loadRepoRefDiffPreview._currentRequest = $.get(url) |
|
315 |
.error(function( |
|
|
316 | .error(function(jqXHR, textStatus, errorThrown) { | |
|
316 | 317 | if (textStatus !== 'abort') { |
|
317 | alert( | |
|
318 | "Error while processing request.\nError code {0} ({1}).".format( | |
|
319 | data.status, data.statusText)); | |
|
318 | var prefix = "Error while processing request.\n" | |
|
319 | var message = formatErrorMessage(jqXHR, textStatus, errorThrown, prefix); | |
|
320 | ajaxErrorSwal(message); | |
|
320 | 321 | } |
|
321 | 322 | |
|
322 | 323 | }) |
@@ -503,8 +504,10 b'' | |||
|
503 | 504 | targetRepoChanged(data); |
|
504 | 505 | loadRepoRefDiffPreview(); |
|
505 | 506 | }, |
|
506 |
error: function( |
|
|
507 | alert("Error while fetching entries.\nError code {0} ({1}).".format(data.status, data.statusText)); | |
|
507 | error: function(jqXHR, textStatus, errorThrown) { | |
|
508 | var prefix = "Error while fetching entries.\n" | |
|
509 | var message = formatErrorMessage(jqXHR, textStatus, errorThrown, prefix); | |
|
510 | ajaxErrorSwal(message); | |
|
508 | 511 | } |
|
509 | 512 | }) |
|
510 | 513 |
General Comments 0
You need to be logged in to leave comments.
Login now