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); + } } };