mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
Better client side errors when there are issues communicating with trakt.
This commit is contained in:
parent
377e5d28e9
commit
0c57c6a6c1
10 changed files with 95 additions and 37 deletions
|
@ -73,8 +73,14 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
else if (xmlHttpRequest.status === 503) {
|
||||
message.message = xmlHttpRequest.responseJSON.message;
|
||||
}
|
||||
|
||||
message.message = '[{0}] {1} : {2}'.format(ajaxOptions.type, xmlHttpRequest.statusText, ajaxOptions.url);
|
||||
else
|
||||
{
|
||||
message.message = '[{0}] {1} : {2}'.format(ajaxOptions.type, xmlHttpRequest.statusText, ajaxOptions.url);
|
||||
}
|
||||
|
||||
window.Messenger().post(message);
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue