Sfoglia il codice sorgente

Add warning when blob could not be removed

Ben Hsieh 8 anni fa
parent
commit
7e1fd2b0ba
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3
    1
      src/polyfill/Blob.js

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

@@ -259,7 +259,9 @@ export default class Blob extends EventTarget {
259 259
     if(this._closed)
260 260
       return Promise.reject('Blob has been released.')
261 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 267
   _invokeOnCreateEvent() {