From fcb4e2adcd1f383f3f744d71500fbd9599224717 Mon Sep 17 00:00:00 2001 From: Justinas <156369263+justinnas@users.noreply.github.com> Date: Wed, 11 Sep 2024 00:24:08 +0300 Subject: [PATCH] Added filename in frontend export error --- .../fileTreeView/fileTreeItem/fileTreeItemContextMenu.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/front-end/src/features/editor/components/fileTreeView/fileTreeItem/fileTreeItemContextMenu.tsx b/app/front-end/src/features/editor/components/fileTreeView/fileTreeItem/fileTreeItemContextMenu.tsx index 2b1375e..6433f9e 100644 --- a/app/front-end/src/features/editor/components/fileTreeView/fileTreeItem/fileTreeItemContextMenu.tsx +++ b/app/front-end/src/features/editor/components/fileTreeView/fileTreeItem/fileTreeItemContextMenu.tsx @@ -182,7 +182,12 @@ export const FileTreeItemContextMenu: React.FC = ( fileName: item.id, }); } catch (error) { - socket.emit(Events.WORKSPACE_EXPORT_FEEDBACK_EVENT, { uuid: getUUID(), sid: getSID(), status: 'failure' }); + socket.emit(Events.WORKSPACE_EXPORT_FEEDBACK_EVENT, { + uuid: getUUID(), + sid: getSID(), + status: 'failure', + fileName: item.id, + }); console.error('Error exporting file:', error); } }, [item]);