We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b4d14b commit 379fc2cCopy full SHA for 379fc2c
1 file changed
index.js
@@ -66,7 +66,7 @@ const Progress = {
66
return Progress.option.fail = message === null || message === undefined ? '錯誤' : message, Progress.percent.text = Progress.option.fail, Progress.stop(Progress.finish = _ => Progress.error(...errors)), Progress
67
},
68
error (...errors) {
69
- return errors.length && Progress.print(Progress.option.color ? "\n 【錯誤訊息】\n".red : "\n 【錯誤訊息】\n" + errors.map(error => ' '.repeat(Progress.option.space) + Progress.option.header + ' ' + (error instanceof Error ? error.stack : error) + "\n").join('') + "\n") && process.emit('SIGINT'), Progress
+ return errors.length && Progress.print((Progress.option.color ? "\n 【錯誤訊息】\n".red : "\n 【錯誤訊息】\n") + errors.map(error => ' '.repeat(Progress.option.space) + Progress.option.header + ' ' + (error instanceof Error ? error.stack : error) + "\n").join('') + "\n") && process.emit('SIGINT'), Progress
70
71
}
72
0 commit comments