mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Better client side error handling
This commit is contained in:
parent
08d811f7c3
commit
02cf23721a
8 changed files with 12 additions and 20 deletions
|
@ -37,10 +37,9 @@
|
|||
if (this.url.indexOf("/notification/Comet") === 0 || this.url.indexOf("/Health/Index") === 0 || this.url.indexOf("/signalr") === 0)
|
||||
return;
|
||||
|
||||
alert("Status: " + textStatus + ", Error: " + thrownError);
|
||||
$.gritter.add({
|
||||
title: 'Request failed',
|
||||
text: this.url,
|
||||
text: 'Url: ' + this.url + '<br/>Error: ' + thrownError,
|
||||
image: '../../content/images/error.png',
|
||||
class_name: 'gritter-fail',
|
||||
time: 10000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue