Add a catch to readNetworkInfo

This commit is contained in:
haad
2016-05-16 15:05:29 +02:00
parent 0ecfc837a2
commit 74728054cf

View File

@@ -68,6 +68,7 @@ class OrbitDB {
}
_onMessage(dbname, message) {
// console.log(".MESSAGE", dbname, message);
const store = this.stores[dbname];
store.sync(message).catch((e) => logger.error(e.stack));
}
@@ -116,7 +117,7 @@ class OrbitDB {
.on('error', (err) => reject(err))
.on('data', (data) => buf += data)
.on('end', () => resolve(buf))
});
}).catch((e) => reject(e));
});
};