提交 d5359b6e 编写于 作者: M mahaifeng

[filemanager]输出错误日志(write test详细日志)

上级 701182e5
......@@ -1308,7 +1308,8 @@ describe('ExtApi-FileManagerTest', () => {
let bytesWritten = await getData("bytesWritten")
let lastFailError = await getData("lastFailError")
if(bytesWritten != 7){
console.log('writeTest',lastFailError.errCode,lastFailError.errMsg,bytesWritten)
let writeData = await getData("writeData")
console.log('writeTest',lastFailError.errCode,lastFailError.errMsg,bytesWritten,writeData)
}
expect(bytesWritten).toEqual(7)
......
......@@ -1092,13 +1092,14 @@
}
console.log("success", res)
this.bytesWritten = res.bytesWritten
this.lastFailError=new UniError('uni-fileSystemManager', 0,'writeTest success:'+ JSON.stringify(res))
},
fail: (res : IUniError) => {
if (this.logAble) {
this.log += 'writeTest fail:' + JSON.stringify(res) + '\n\n'
}
console.log('fail', res)
this.lastFailError=new UniError(res.errSubject, res.errCode, res.errMsg)
this.lastFailError=new UniError(res.errSubject, res.errCode,'writeTest:'+ res.errMsg)
},
complete: (_) => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册