Skip to content

Commit

Permalink
feat: 错误信息补充
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdada committed May 4, 2020
1 parent f6d3e89 commit ef4946c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/utils/error-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const errorHandler = function(this: Command, err: Error): void {
console.error(chalk.red(`⚠️ 发生错误`));
console.error(chalk.red(`⚠️ ${err.name}: ${err.message}`));
console.error('⚠️ 版本号: %s', require('../../package.json').version);
console.error('⚠️ 常见问题: %s', chalk.cyan('https://bit.ly/2KVLjvZ'));
console.error('⚠️ 加入交流群汇报问题 %s', chalk.cyan('https://t.me/surgiotg'));
console.error();
console.error(chalk.red(err.stack));
Expand Down

0 comments on commit ef4946c

Please sign in to comment.