@zhennann/common-bin 4.0.0 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/command.js +5 -4
  2. package/package.json +1 -1
package/lib/command.js CHANGED
@@ -147,10 +147,11 @@ class CommonBin {
147
147
  * @protected
148
148
  */
149
149
  errorHandler(err) {
150
- console.error(chalk.red(`⚠️ ${err.name}: ${err.message}`));
151
- console.error(chalk.red('⚠️ Command Error, enable `DEBUG=common-bin` for detail'));
152
- debug('args %s', process.argv.slice(3));
153
- debug(err.stack);
150
+ console.error(err);
151
+ // console.error(chalk.red(`⚠️ ${err.name}: ${err.message}`));
152
+ // console.error(chalk.red('⚠️ Command Error, enable `DEBUG=common-bin` for detail'));
153
+ // debug('args %s', process.argv.slice(3));
154
+ // debug(err.stack);
154
155
  process.exit(1);
155
156
  }
156
157
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhennann/common-bin",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Abstraction bin tool",
5
5
  "main": "index.js",
6
6
  "dependencies": {