diff --git a/pages/API/get-file-system-manager/get-file-system-manager.test.js b/pages/API/get-file-system-manager/get-file-system-manager.test.js index 03249b0f604c2098576d1f9922b2d5e7c5c555aa..1160298985dbcaafc9415db2aed48f4eacbb33f9 100644 --- a/pages/API/get-file-system-manager/get-file-system-manager.test.js +++ b/pages/API/get-file-system-manager/get-file-system-manager.test.js @@ -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) diff --git a/pages/API/get-file-system-manager/get-file-system-manager.uvue b/pages/API/get-file-system-manager/get-file-system-manager.uvue index 2ae9c050d799d9fd85c7e4e1a374af8055693df1..72bce6ddb2545c877febb6ca9b59aafd7f34aa2f 100644 --- a/pages/API/get-file-system-manager/get-file-system-manager.uvue +++ b/pages/API/get-file-system-manager/get-file-system-manager.uvue @@ -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: (_) => {