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>
This commit is contained in:
Jo-Philipp Wich 2020-01-26 22:51:22 +01:00
parent 40ee3fa3ce
commit 1b040984c2

View file

@ -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', {