diff options
| author | secondl1ght <[email protected]> | 2022-08-24 18:47:21 -0400 |
|---|---|---|
| committer | secondl1ght <[email protected]> | 2022-08-24 18:47:21 -0400 |
| commit | 47d5d5bc6cdcd39f8d5ad93d9f5d15d3403c6c21 (patch) | |
| tree | da63f8ddb681f581f73e46b4fd39f4043c0d1f75 /src/lib/utils.js | |
| parent | 49925d3e67ad0d48dfdbcfe46d856cd98ed2161d (diff) | |
| parent | 68e34d886c26010dcc032ec9f71729070d767146 (diff) | |
| download | coinos-ui-47d5d5bc6cdcd39f8d5ad93d9f5d15d3403c6c21.tar.gz coinos-ui-47d5d5bc6cdcd39f8d5ad93d9f5d15d3403c6c21.zip | |
Merge branch 'master' of github.com:coinos/coinos-ui-v2
Diffstat (limited to 'src/lib/utils.js')
| -rw-r--r-- | src/lib/utils.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/utils.js b/src/lib/utils.js index a1bdf8d7..65025c3a 100644 --- a/src/lib/utils.js +++ b/src/lib/utils.js @@ -47,6 +47,8 @@ export const put = (url, body, headers) => { method: 'PUT', body: JSON.stringify(body), headers + }).then(async (r) => { + if (!r.ok) throw new Error('put failed'); }); }; |
