-
Notifications
You must be signed in to change notification settings - Fork 516
[BUG] 修复 initBeforeUploadChunks 错误未中断的行为 #503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## master #503 +/- ##
=======================================
Coverage 42.21% 42.21%
=======================================
Files 9 9
Lines 514 514
Branches 113 113
=======================================
Hits 217 217
Misses 285 285
Partials 12 12 Continue to review full report at Codecov.
|
const errorMessage = 'chunkSize must be a positive integer.' | ||
this.logger.error(errorMessage) | ||
throw new Error(errorMessage) | ||
throw new Error('chunkSize must be a positive integer.') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log
输出应秉承,谁消费、谁输出,例如这里:
不应该一边产生了一个副作用(输出日志),又 throw Error
,很容易导致外面重复输出
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如上个 pr 所说的
putFile
方法也应该设计成这样,而不应该改定位
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
改版本?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1
No description provided.