mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Improve error reporting on sharing errors
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
7a92113fec
commit
d9f12977d3
8 changed files with 11 additions and 9 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
apps/files_sharing/js/dist/main.js.map
vendored
2
apps/files_sharing/js/dist/main.js.map
vendored
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 a new issue