summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-wol/htdocs
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2020-01-26 22:51:22 +0100
committerJo-Philipp Wich <jo@mein.io>2020-01-26 22:51:22 +0100
commit1b040984c24cfe6be39ac472af018fccb894af72 (patch)
treed6463672f6c37324c41eef761dc5a79cde34a75a /applications/luci-app-wol/htdocs
parent40ee3fa3ce1742d625123be11f41df04cf353d7a (diff)
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 <jo@mein.io>
Diffstat (limited to 'applications/luci-app-wol/htdocs')
-rw-r--r--applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js2
1 files changed, 1 insertions, 1 deletions
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', {