Permalink
Browse files

Throw catched error immediately

  • Loading branch information...
1 parent e226c27 commit 2916e0b3b7e5e119e9a3c17050a4264d99dea644 @vslinko committed Nov 28, 2012
Showing with 4 additions and 7 deletions.
  1. +4 −7 tio.js
View
11 tio.js
@@ -111,15 +111,12 @@ var quit = function (err) {
var cleanupAndExit = function () {
win.close();
-
- if (err) {
- throw err;
- } else {
- process.exit();
- }
+ process.exit();
};
- if (argv.verbose) {
+ if (err) {
+ throw err;
+ } else if (argv.verbose) {
win.log('Wait 3 seconds until exit');
setTimeout(cleanupAndExit, 3000);
} else {

0 comments on commit 2916e0b

Please sign in to comment.