From: Jo-Philipp Wich Date: Sun, 26 Jan 2020 21:51:22 +0000 (+0100) Subject: luci-app-wol: cope with empty stdout X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b040984c24cfe6be39ac472af018fccb894af72;p=oweals%2Fluci.git 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 --- 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', {