forgotten file

This commit is contained in:
blagoev 2017-05-12 01:41:04 +03:00
parent 1ae58780bf
commit d214b72fc6

View File

@ -46,7 +46,7 @@ module.exports = function(realmConstructor) {
return new Promise((resolve, reject) => {
realmConstructor._waitForDownload(config, (error) => {
if (error) {
reject(new Error("Cannot asynchronously open synced Realm, because the associated session previously experienced a fatal error"));
reject(error);
}
let syncedRealm = new realmConstructor(config);
@ -58,7 +58,7 @@ module.exports = function(realmConstructor) {
openAsync(config, callback) {
realmConstructor._waitForDownload(config, (error) => {
if (error) {
callback(new Error("Cannot asynchronously open synced Realm, because the associated session previously experienced a fatal error"));
callback(error);
}
let syncedRealm = new realmConstructor(config);