mirror of https://github.com/nextcloud/bookmarks
Fix error message upon bookmark creation
This commit is contained in:
parent
c99ca7c78c
commit
d8c8dcd52e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue