aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-04-22 18:03:56 +0200
committerFlorian Dold <florian.dold@gmail.com>2016-04-22 18:03:56 +0200
commit52707f87e7faf1ae985c88b6787b688d121b538b (patch)
tree71d9d71ef88d69896d011325dabbd4758e3e63fd /pages
parentf6ba6074b7f729ddd9790b2c465451401d8caf2f (diff)
downloadwallet-core-52707f87e7faf1ae985c88b6787b688d121b538b.tar.xz
adapt to protocol changes and improve error handling
Diffstat (limited to 'pages')
-rw-r--r--pages/confirm-create-reserve.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/pages/confirm-create-reserve.tsx b/pages/confirm-create-reserve.tsx
index be84fff2b..1c3bf7cbb 100644
--- a/pages/confirm-create-reserve.tsx
+++ b/pages/confirm-create-reserve.tsx
@@ -121,8 +121,9 @@ class Controller {
console.log("get exchange info rejected");
if (e.hasOwnProperty("httpStatus")) {
this.statusString = `request failed with status ${this.request.status}`;
- } else {
- this.statusString = `unknown request error`;
+ } else if (e.hasOwnProperty("errorResponse")) {
+ let resp = e.errorResponse;
+ this.statusString = `error: ${resp.error} (${resp.hint})`;
}
m.endComputation();
});