Browse Source

Add warning when blob could not be removed

Ben Hsieh 8 years ago
parent
commit
7e1fd2b0ba
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/polyfill/Blob.js

+ 3
- 1
src/polyfill/Blob.js View File

259
     if(this._closed)
259
     if(this._closed)
260
       return Promise.reject('Blob has been released.')
260
       return Promise.reject('Blob has been released.')
261
     this._closed = true
261
     this._closed = true
262
-    return fs.unlink(this._ref)
262
+    return fs.unlink(this._ref).catch((err) => {
263
+      console.warn(err)
264
+    })
263
   }
265
   }
264
 
266
 
265
   _invokeOnCreateEvent() {
267
   _invokeOnCreateEvent() {