Fix error message upon bookmark creation

This commit is contained in:
Marcel Klehr 2019-10-05 23:41:30 +02:00
parent c99ca7c78c
commit d8c8dcd52e
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export default {
data: { item: bookmark, status }
} = response
if (status !== 'success') {
throw new Error(response.data)
throw new Error(response.data.data.join('\n'))
}
commit(mutations.DISPLAY_NEW_BOOKMARK, false)
commit(mutations.ADD_BOOKMARK, bookmark)