Browse Source

minor error handling improvements

fix-133-memory-crash
Dan Janosik 7 years ago
parent
commit
e0797ffed3
  1. 8
      routes/baseActionsRouter.js

8
routes/baseActionsRouter.js

@ -71,22 +71,22 @@ router.get("/node-status", function(req, res) {
res.render("node-status");
}).catch(function(err) {
res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.locals.userMessage = "Error getting node status: (id=0), err=" + err;
res.render("node-status");
});
}).catch(function(err) {
res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.locals.userMessage = "Error getting node status: (id=1), err=" + err;
res.render("node-status");
});
}).catch(function(err) {
res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.locals.userMessage = "Error getting node status: (id=2), err=" + err;
res.render("node-status");
});
}).catch(function(err) {
res.locals.userMessage = "Unable to connect to node at " + env.rpc.host + ":" + env.rpc.port;
res.locals.userMessage = "Error getting node status: (id=3), err=" + err;
res.render("node-status");
});

Loading…
Cancel
Save