Skip to content

Commit

Permalink
chore(message): if err added
Browse files Browse the repository at this point in the history
  • Loading branch information
valorkin committed May 14, 2018
1 parent 87bc81a commit b813550
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 121 deletions.
86 changes: 0 additions & 86 deletions dist/package.json

This file was deleted.

30 changes: 0 additions & 30 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions src/bin/ngm-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,21 @@ const cli = meow(`
},
watch: {
type: 'boolean',
alias: 'w'
alias: 'w',
default: false
},
version: {
type: 'boolean',
alias: 'c'
alias: 'c',
default: false
},
local: {
type: 'boolean'
type: 'boolean',
default: false
},
verbose: {
type: 'boolean'
type: 'boolean',
default: true
}
}
});
Expand Down
5 changes: 4 additions & 1 deletion src/utils/tasks-watch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ export function tasksWatch({project, taskQueue, watch, paths}){
isRunning = false;
})
.catch(err => {
console.error(`\n${err.message}`);
if (err) {
console.error(`\n${err.message}`);
}
console.error()
isRunning = false;
});
}
Expand Down

0 comments on commit b813550

Please sign in to comment.