Merge pull request #21806 from nextcloud/backport/21748/stable19
[stable19] Improve error reporting on sharing errors
This commit is contained in:
commit
8074968078
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -99,9 +99,11 @@ export default {
|
|||
return true
|
||||
} catch (error) {
|
||||
console.error('Error while updating share', error)
|
||||
OC.Notification.showTemporary(t('files_sharing', 'Error updating the share'), { type: 'error' })
|
||||
if (error.response.status !== 400) {
|
||||
OC.Notification.showTemporary(t('files_sharing', 'Error updating the share'), { type: 'error' })
|
||||
}
|
||||
const message = error.response.data.ocs.meta.message
|
||||
throw new Error(`${Object.keys(properties)}, ${message}`)
|
||||
throw new Error(message)
|
||||
}
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue