Error
return this._db.transaction().execute(async trx => { const entryType = await this._db .selectFrom("updateLogEntryType") .selectAll() .where("kind", "=", props.updateKind) .executeTakeFirst(); if (!entryType) { logger.error("Unable to create update log with unknown type:", entryType); // <-- rollback transaction here, without throwing an Error return new Err("EntryTypeNotFound"); } );