Better error handling

This commit is contained in:
taehoon 2019-02-08 22:17:53 -05:00
parent 2132d58075
commit 2de756aa0c
3 changed files with 5 additions and 2 deletions

View file

@ -124,7 +124,7 @@ const UserSettings = {
this.$store.commit('addNewUsers', [user])
this.$store.commit('setCurrentUser', user)
} else {
throw this.$t('upload.error.base') + user.error
throw new Error(this.$t('upload.error.base') + user.error)
}
})
},