diff --git a/packages/dynamic-import/cache.js b/packages/dynamic-import/cache.js index 9be3ae3248..acbf6e1011 100644 --- a/packages/dynamic-import/cache.js +++ b/packages/dynamic-import/cache.js @@ -29,10 +29,10 @@ function withDB(callback) { function makeOnError(reject, source) { return function (event) { - var error = new Error("IndexedDB failure in " + source); - var idbError = event.target.error; - error.stack = idbError && idbError.stack; - reject(error); + reject(new Error( + "IndexedDB failure in " + source + " " + + JSON.stringify(event.target) + )); }; }