Skip to content

Commit

Permalink
Added filename in frontend export error
Browse files Browse the repository at this point in the history
  • Loading branch information
justinnas committed Sep 10, 2024
1 parent 126481d commit fcb4e2a
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,12 @@ export const FileTreeItemContextMenu: React.FC<FileTreeItemContextMenuProps> = (
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]);
Expand Down

0 comments on commit fcb4e2a

Please sign in to comment.