Log error when repling on Windows
authorKevin Sawicki <kevinsawicki@gmail.com>
Mon, 13 Jun 2016 16:46:33 +0000 (09:46 -0700)
committerKevin Sawicki <kevinsawicki@gmail.com>
Mon, 13 Jun 2016 16:46:33 +0000 (09:46 -0700)
default_app/main.js

index 4bf4dac..9c66363 100644 (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)
   })