log correct error code when opening log idb

This commit is contained in:
Bruno Windels 2018-10-08 15:14:03 +02:00
parent 21cedbabf2
commit 14b040e6a6

View file

@ -127,7 +127,7 @@ class IndexedDBLogStore {
req.onerror = (event) => {
const err = (
"Failed to open log database: " + event.target.errorCode
"Failed to open log database: " + event.target.error.name
);
console.error(err);
reject(new Error(err));