diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-02-09 21:56:06 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-02-09 21:56:06 +0100 |
commit | 5e85cd8b8fa25ed3fbfc260b48bcad098978407a (patch) | |
tree | 3c875261e2c3fa2176911caefc4dcf225a04df74 /extension/lib/wallet/query.ts | |
parent | 42a0076f5951d303635b2e544aa66112cdb9abfe (diff) | |
download | wallet-core-5e85cd8b8fa25ed3fbfc260b48bcad098978407a.tar.xz |
new reserve creation protocol
Diffstat (limited to 'extension/lib/wallet/query.ts')
-rw-r--r-- | extension/lib/wallet/query.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/extension/lib/wallet/query.ts b/extension/lib/wallet/query.ts index 82053138f..b82c85189 100644 --- a/extension/lib/wallet/query.ts +++ b/extension/lib/wallet/query.ts @@ -268,6 +268,10 @@ class QueryRoot { * Get one object from a store by its key. */ get(storeName, key): Promise<any> { + if (key === void 0) { + throw Error("key must not be undefined"); + } + const {resolve, promise} = openPromise(); const doGet = (tx) => { |