Skip to content

Commit

Permalink
enable logging for Weaver namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Gonzalez committed Sep 27, 2020
1 parent deed22a commit 592e649
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const {
isCalledWithParams,
} = require('./lib/utils');

Debug.enable('Weaver:*');
argv
.check(verboseMode)
.scriptName('weaver')
Expand All @@ -27,7 +28,7 @@ argv
.strict(true)
.check(isCalledWithParams)
.fail((msg, err, yargs) => {
logging('Error', yargs);
if (err) logging('Error', yargs);
if (err) throw err; // preserve stack
if (!isCalledWithParams()) {
console.error(yargs.help());
Expand Down
2 changes: 1 addition & 1 deletion dist/bin/cli.js

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

0 comments on commit 592e649

Please sign in to comment.