From 1b040984c24cfe6be39ac472af018fccb894af72 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Sun, 26 Jan 2020 22:51:22 +0100 Subject: luci-app-wol: cope with empty stdout Fix a cosmetic issue when etherwake is sending to an invalid interface. Signed-off-by: Jo-Philipp Wich --- applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'applications/luci-app-wol/htdocs') diff --git a/applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js b/applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js index 0eb7b4f7c..aeecd54fc 100644 --- a/applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js +++ b/applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js @@ -104,7 +104,7 @@ return L.view.extend({ return fs.exec(bin, args).then(function(res) { ui.showModal(_('Waking host'), [ - E('p', [ res.stdout ]), + res.stderr ? E('p', [ res.stdout ]) : '', res.stderr ? E('pre', [ res.stderr ]) : '', E('div', { 'class': 'right' }, [ E('button', { -- cgit v1.2.3