From 5802cd11dc8d91283b3fd46ab3c26557e4715ae9 Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Mon, 13 Mar 2017 17:04:34 +0000 Subject: [PATCH] Print error message in UI portal --- gateway/assets/script/bootstrap.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/assets/script/bootstrap.js b/gateway/assets/script/bootstrap.js index efb5d724..2d0ea18c 100644 --- a/gateway/assets/script/bootstrap.js +++ b/gateway/assets/script/bootstrap.js @@ -38,8 +38,8 @@ app.controller("home", ['$scope', '$log', '$http', '$location', '$timeout', '$md $scope.invocationResponse = response.data; $scope.invocationStatus = response.status; }).catch(function(error1) { - $scope.invocationResponse = error1; - $scope.invocationStatus = null; + $scope.invocationResponse = error1.statusText + "\n" + error1.data; + $scope.invocationStatus = error1.status; }); };