Skip to content

Commit

Permalink
Auto-Organize: Display errors in client on server exceptions (#2)
Browse files Browse the repository at this point in the history
When an exception occured on the server, the organize dialog or the
confirm dialog were displayed eternally and not indication of failure
was presented to the user

Auto-Organize: Display errors in client on server exceptions

When an exception occured on the server, the organize dialog or the
confirm dialog were displayed eternally and not indication of failure
was presented to the user
  • Loading branch information
softworkz committed Sep 28, 2015
1 parent abefb9b commit 41cc04c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@

Dashboard.alert({

title: 'Status: ' + e.status + ' ' + e.statusText,
message: e.getResponseHeader("X-Application-Error-Code")
title: Globalize.translate('AutoOrganizeError'),
message: e.status + ' - ' + e.statusText + '<br>' + e.getResponseHeader("X-Application-Error-Code")

});
});
Expand Down Expand Up @@ -182,8 +182,8 @@

Dashboard.alert({

title: 'Status: ' + e.status + ' ' + e.statusText,
message: e.getResponseHeader("X-Application-Error-Code")
title: Globalize.translate('AutoOrganizeError'),
message: e.status + ' - ' + e.statusText + '<br>' + e.getResponseHeader("X-Application-Error-Code")

});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@
"HeaderSelectWatchFolder": "Select Watch Folder",
"HeaderSelectWatchFolderHelp": "Browse or enter the path to your watch folder. The folder must be writeable.",
"OrganizePatternResult": "Result: {0}",
"AutoOrganizeError": "Error Organizing File",
"HeaderRestart": "Restart",
"HeaderShutdown": "Shutdown",
"MessageConfirmRestart": "Are you sure you wish to restart Emby Server?",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@
"HeaderSelectWatchFolder": "Select Watch Folder",
"HeaderSelectWatchFolderHelp": "Browse or enter the path to your watch folder. The folder must be writeable.",
"OrganizePatternResult": "Result: {0}",
"AutoOrganizeError": "Error Organizing File",
"HeaderRestart": "Restart",
"HeaderShutdown": "Shutdown",
"MessageConfirmRestart": "Are you sure you wish to restart Emby Server?",
Expand Down

0 comments on commit 41cc04c

Please sign in to comment.