From 248dba62a8b1bd493341f3b9257d2f7a0edc4194 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Wed, 11 Nov 2015 11:28:40 +1300 Subject: Handle HTTP connection errors --- web/app/Application.js | 2 +- web/l10n/en.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'web') 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', -- cgit v1.2.3