diff options
author | Jo-Philipp Wich <jo@mein.io> | 2020-01-26 22:51:22 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-01-26 22:51:22 +0100 |
commit | 1b040984c24cfe6be39ac472af018fccb894af72 (patch) | |
tree | d6463672f6c37324c41eef761dc5a79cde34a75a /applications/luci-app-wol | |
parent | 40ee3fa3ce1742d625123be11f41df04cf353d7a (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')
-rw-r--r-- | applications/luci-app-wol/htdocs/luci-static/resources/view/wol.js | 2 |
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', { |