aboutsummaryrefslogtreecommitdiff
path: root/src/wallet-impl/reserves.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-03 00:52:15 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-03 00:52:15 +0100
commitc33dd75711a39403bd4dd9940caab6d5e6ad2d77 (patch)
tree7d7d9c64b5074a8f533302add3b1674c5d424c8d /src/wallet-impl/reserves.ts
parenta5137c32650b0b9aa2abbe55e4f4f3f60ed78e07 (diff)
downloadwallet-core-c33dd75711a39403bd4dd9940caab6d5e6ad2d77.tar.xz
pending operations (pay/proposals)
Diffstat (limited to 'src/wallet-impl/reserves.ts')
-rw-r--r--src/wallet-impl/reserves.ts10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wallet-impl/reserves.ts b/src/wallet-impl/reserves.ts
index 5d624fe27..c9cd10ca2 100644
--- a/src/wallet-impl/reserves.ts
+++ b/src/wallet-impl/reserves.ts
@@ -344,10 +344,16 @@ async function updateReserve(
resp = await ws.http.get(reqUrl.href);
} catch (e) {
if (e.response?.status === 404) {
- return;
+ const m = "The exchange does not know about this reserve (yet).";
+ await setReserveError(ws, reservePub, {
+ type: "waiting",
+ details: {},
+ message: "The exchange does not know about this reserve (yet).",
+ });
+ throw new OperationFailedAndReportedError(m);
} else {
const m = e.message;
- setReserveError(ws, reservePub, {
+ await setReserveError(ws, reservePub, {
type: "network",
details: {},
message: m,