diff --git a/changelog/unreleased/bugfix-expose-request-id-when-delete-fails b/changelog/unreleased/bugfix-expose-request-id-when-delete-fails new file mode 100644 index 00000000000..df76d8b74bc --- /dev/null +++ b/changelog/unreleased/bugfix-expose-request-id-when-delete-fails @@ -0,0 +1,6 @@ +Bugfix: Export request ID when delete fails + +We've fixed a bug where the request ID was not exposed to the error message when a delete operation failed. + +https://github.com/owncloud/web/pull/11951 +https://github.com/owncloud/web/issues/11925 \ No newline at end of file diff --git a/packages/web-pkg/src/composables/actions/helpers/useFileActionsDeleteResources.ts b/packages/web-pkg/src/composables/actions/helpers/useFileActionsDeleteResources.ts index ef274fb6e7f..52f5f714740 100644 --- a/packages/web-pkg/src/composables/actions/helpers/useFileActionsDeleteResources.ts +++ b/packages/web-pkg/src/composables/actions/helpers/useFileActionsDeleteResources.ts @@ -201,7 +201,7 @@ export const useFileActionsDeleteResources = () => { }) } - messageStore.showErrorMessage({ title, errors: [new Error()] }) + messageStore.showErrorMessage({ title, errors: [error] }) }) // user hasn't navigated to another location meanwhile