From: Cheng Zhao Date: Wed, 30 Sep 2015 09:29:38 +0000 (+0800) Subject: Exit the process when unable to find a valid app X-Git-Tag: v0.33.4~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=8c3116851dcdc2eee5be766a1f889d48a88ddab2;p=electron.git Exit the process when unable to find a valid app Fixes #2583. --- diff --git a/atom/browser/lib/init.coffee b/atom/browser/lib/init.coffee index 1299364d..454baf0b 100644 --- a/atom/browser/lib/init.coffee +++ b/atom/browser/lib/init.coffee @@ -64,7 +64,9 @@ for packagePath in searchPaths catch e continue -throw new Error("Unable to find a valid app") unless packageJson? +unless packageJson? + process.nextTick -> process.exit 1 + throw new Error("Unable to find a valid app") # Set application's version. app.setVersion packageJson.version if packageJson.version?