Skip to content
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

fix(Net/persist): 纠正错误处理方式,拿掉 err 是 Observable 的假设 #663

Open
wants to merge 1 commit into
base: release
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Net/Net.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ export class Net {
this.persistedDataBuffer.length = 0

return Observable.from(asyncQueue).concatAll().do({
error: async (err: Observable<Error>) => {
const errObj = await err.toPromise()
SDKLogger.error(errObj.message)
error: (err) => {
const errmsg = err && err.message || String(err)
SDKLogger.error(errmsg)
}
})
}
Expand Down