Merge pull request #6030 from electron/repl-error-on-windows

Log error when repling on Windows
This commit is contained in:
Cheng Zhao 2016-06-13 23:43:51 +00:00 committed by GitHub
commit ae22980ee3

View file

@ -309,6 +309,12 @@ function loadApplicationByUrl (appUrl) {
}
function startRepl () {
if (process.platform === 'win32') {
console.error('Electron REPL not currently supported on Windows')
process.exit(1)
return
}
repl.start('> ').on('exit', () => {
process.exit(0)
})