Log error when repling on Windows
This commit is contained in:
parent
2dc453b4be
commit
82d0d06d61
1 changed files with 6 additions and 0 deletions
|
@ -309,6 +309,12 @@ function loadApplicationByUrl (appUrl) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function startRepl () {
|
function startRepl () {
|
||||||
|
if (process.platform === 'win32') {
|
||||||
|
console.error('Electron REPL not currently supported on Windows')
|
||||||
|
process.exit(1)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
repl.start('> ').on('exit', () => {
|
repl.start('> ').on('exit', () => {
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue