diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-11 11:28:40 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-11-11 11:28:40 +1300 |
commit | 248dba62a8b1bd493341f3b9257d2f7a0edc4194 (patch) | |
tree | db6bfed6e965f3091b85e4976d081e72f8b23b26 /web | |
parent | fd67134ea7afa3056427179bf0a0572af51a864a (diff) | |
download | trackermap-server-248dba62a8b1bd493341f3b9257d2f7a0edc4194.tar.gz trackermap-server-248dba62a8b1bd493341f3b9257d2f7a0edc4194.tar.bz2 trackermap-server-248dba62a8b1bd493341f3b9257d2f7a0edc4194.zip |
Handle HTTP connection errors
Diffstat (limited to 'web')
-rw-r--r-- | web/app/Application.js | 2 | ||||
-rw-r--r-- | web/l10n/en.js | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/web/app/Application.js b/web/app/Application.js index 9a7afc3b9..ebf685dbc 100644 --- a/web/app/Application.js +++ b/web/app/Application.js @@ -93,7 +93,7 @@ Ext.define('Traccar.Application', { if (response.statusText) { Ext.Msg.alert(Strings.errorTitle, response.statusText); } else { - Ext.Msg.alert(Strings.errorTitle, response.status.toString()); // TODO: text message + Ext.Msg.alert(Strings.errorTitle, Strings.errorConnection); } } }; diff --git a/web/l10n/en.js b/web/l10n/en.js index 23af1f81b..fdf5e49c7 100644 --- a/web/l10n/en.js +++ b/web/l10n/en.js @@ -16,6 +16,7 @@ var Strings = { errorTitle: 'Error', errorUnknown: 'Unknown error', + errorConnection: 'Connection error', userName: 'Name', userEmail: 'Email', |