Also report when user provided strange files.

This commit is contained in:
Cheng Zhao 2014-05-05 16:50:11 +08:00
parent f0e5cae9bb
commit 0e7c7ca34b

View file

@ -17,7 +17,6 @@ if (argv._.length > 0) {
try {
require(path.resolve(argv._[0]));
} catch(e) {
if (e.code == 'MODULE_NOT_FOUND') {
app.focus();
dialog.showMessageBox({
type: 'warning',
@ -27,9 +26,6 @@ if (argv._.length > 0) {
detail: 'https://github.com/atom/atom-shell/tree/master/docs'
});
process.exit(1);
} else {
throw e;
}
}
} else if (argv.version) {
console.log('v' + process.versions['atom-shell']);