Closed dcharbonnier closed 2 years ago
await db.open() will never reject and an error event will be emitter crashing the process.
await db.open()
a dirty workaround that should not add issue the day this is fixed:
await new Promise<void>((resolve, reject) => { db.once("error", (err) => reject(err)); db.open((err) => { if (err) { reject(err); } else { resolve(); } }); });
Duplicate of https://github.com/Level/levelup/issues/710
await db.open()
will never reject and an error event will be emitter crashing the process.a dirty workaround that should not add issue the day this is fixed: