launcher: fix startup and filer node debug error

This commit is contained in:
bordun 2020-12-09 11:25:03 +01:00
parent 095995025e
commit 1b7cf0339b
2 changed files with 9 additions and 2 deletions

View file

@ -152,7 +152,7 @@ if (settings.cli) {
ipcMain.on('start',function(e, options){
var args = ['--', '--no-gui']
var args = [ '--no-gui']
// if (process.platform === 'win32') args.unshift('--') // not needed with ELECTRON_RUN_AS_NODE since '--' is always prepended
for (var k in settings.read('options')) {
@ -183,7 +183,9 @@ if (settings.cli) {
})
global.serverProcess.stderr.on('data', (data) => {
console.error(String(data).trim())
var str = String(data).trim()
if (str.includes('--debug')) return
console.error(str)
})