error message
This commit is contained in:
parent
bc05121da2
commit
c03100cc0d
@ -81,6 +81,9 @@ function getPossibleMintCoins(db, paymentAmount, depositFeeLimit, allowedMints)
|
||||
.get(info.master_pub);
|
||||
req_mints.onsuccess = (e) => {
|
||||
let mint = req_mints.result;
|
||||
if (!mint) {
|
||||
throw Error("no matching mint in index");
|
||||
}
|
||||
let req_coins = tx.objectStore("coins")
|
||||
.index("mintBaseUrl")
|
||||
.openCursor(IDBKeyRange.only(mint.baseUrl));
|
||||
|
@ -157,6 +157,9 @@ function getPossibleMintCoins(db: IDBDatabase,
|
||||
.get(info.master_pub);
|
||||
req_mints.onsuccess = (e) => {
|
||||
let mint: Db.Mint = req_mints.result;
|
||||
if (!mint) {
|
||||
throw Error("no matching mint in index");
|
||||
}
|
||||
let req_coins = tx.objectStore("coins")
|
||||
.index("mintBaseUrl")
|
||||
.openCursor(IDBKeyRange.only(mint.baseUrl));
|
||||
|
Loading…
Reference in New Issue
Block a user