From 597500232b4c1251e7db1368eefb4bdd02f34544 Mon Sep 17 00:00:00 2001 From: sco Date: Tue, 3 Nov 2020 01:31:48 +0100 Subject: [PATCH] test --- public/node.js | 2 +- src/components/External.vue | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/public/node.js b/public/node.js index 1e18bde..6f1cb56 100644 --- a/public/node.js +++ b/public/node.js @@ -98,7 +98,7 @@ app.get('/vpnCheck', async (req, res) => { { "id": "vpn-check", "data": "Not connected", - "stderr": "" + "stderr": "VPN not connected" }) } diff --git a/src/components/External.vue b/src/components/External.vue index b0b75cb..a604d48 100644 --- a/src/components/External.vue +++ b/src/components/External.vue @@ -39,6 +39,9 @@ mounted: async function () { throw Error(response.statusText); } this.response = await response.json(); + if(this.response.stderr !== "") { + console.error(this.response.stderr); + } } };