From 93f4b3bc5002a7ca1035f5f239696383c4de59d4 Mon Sep 17 00:00:00 2001 From: Synox Date: Sun, 20 Nov 2016 22:40:16 +0100 Subject: [PATCH] error handling --- src/client-libs/index.js | 2 +- src/index.html | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/client-libs/index.js b/src/client-libs/index.js index 803ac15..f173959 100644 --- a/src/client-libs/index.js +++ b/src/client-libs/index.js @@ -94,7 +94,7 @@ app.controller('MailboxController', ["$scope", "$interval", "$http", "$log", fun self.address = response.data.address; self.username = response.data.username; } else { - self.error = "There is a problem with fetching the JSON. (JSON_ERROR). Make sure the backend works corrently using the webbrowser developer tools. Reponse:" + response.data; + self.error = "There is a problem with fetching the JSON. (JSON_ERROR). Reponse:" + response.data; } }, function errorCallback(response) { $log.error(response); diff --git a/src/index.html b/src/index.html index af87056..d05f9f6 100644 --- a/src/index.html +++ b/src/index.html @@ -46,7 +46,15 @@