mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Include more error information when IndexedDB operations fail.
This commit is contained in:
@@ -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)
|
||||
));
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user