Also report when user provided strange files.
This commit is contained in:
parent
f0e5cae9bb
commit
0e7c7ca34b
1 changed files with 9 additions and 13 deletions
|
@ -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']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue