Przeglądaj źródła

Add warning when blob could not be removed

Ben Hsieh 8 lat temu
rodzic
commit
7e1fd2b0ba
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3
    1
      src/polyfill/Blob.js

+ 3
- 1
src/polyfill/Blob.js Wyświetl plik

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() {