summary refs log tree commit diff stats
path: root/client/src/views/CreateSmiles.vue
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2022-02-04 11:56:54 +0530
committerAndinus <andinus@nand.sh>2022-02-04 11:56:54 +0530
commit3f8a1326dffb01512a1b19a141360180bf6b7fd8 (patch)
tree753b225d500b7dcf92b3141267e982cd790a847d /client/src/views/CreateSmiles.vue
parent1e1e1a0728b2ec8cf42dc943606de13cb33a507c (diff)
downloadvela-3f8a1326dffb01512a1b19a141360180bf6b7fd8.tar.gz
Implement upload functionality
The authentication part on the server is not implemented properly.
Diffstat (limited to 'client/src/views/CreateSmiles.vue')
-rw-r--r--client/src/views/CreateSmiles.vue3
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/views/CreateSmiles.vue b/client/src/views/CreateSmiles.vue
index 7c285f0..88da1f4 100644
--- a/client/src/views/CreateSmiles.vue
+++ b/client/src/views/CreateSmiles.vue
@@ -112,7 +112,8 @@ export default {
                 body: JSON.stringify(data)
             }).then(response => {
                 if (!response.ok)
-                    throw new Error('HTTP error, status = ' + response.status);
+                    throw new Error('HTTP error, status = ' + response.status
+                                    + ' | ' + response.statusText);
                 return response.json();
             }).then(res => {
                 this.id = res.id;