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:
parent
40ee3fa3ce
commit
1b040984c2
1 changed files with 1 additions and 1 deletions
|
@ -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', {
|
||||
|
|
Loading…
Reference in a new issue