From 7c6e6277a1dc88c6017fc79006f615e94b0878ab Mon Sep 17 00:00:00 2001 From: David Kaltschmidt Date: Fri, 13 Nov 2015 17:27:50 +0100 Subject: [PATCH] Dont treat missing node as UI error --- client/app/scripts/utils/web-api-utils.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/client/app/scripts/utils/web-api-utils.js b/client/app/scripts/utils/web-api-utils.js index 45aeb16c96..aed90162b6 100644 --- a/client/app/scripts/utils/web-api-utils.js +++ b/client/app/scripts/utils/web-api-utils.js @@ -112,8 +112,11 @@ function getNodeDetails(topologyUrl, nodeId, options) { AppActions.receiveNodeDetails(res.node); }, error: function(err) { - debug('Error in node details request: ' + err); - AppActions.receiveError(topologyUrl); + debug('Error in node details request: ' + err.responseText); + // dont treat missing node as error + if (err.status !== 404) { + AppActions.receiveError(topologyUrl); + } } }); }