fix: updated error message for renaming requests (#7010)

Co-authored-by: shubh-bruno <shubh-bruno@shubh-bruno.local>
This commit is contained in:
shubh-bruno
2026-02-20 12:13:54 +05:30
committed by GitHub
parent cd33cb76fb
commit dfa1533b72

View File

@@ -830,7 +830,7 @@ export const renameItem
.invoke('renderer:rename-item-filename', { oldPath: item.pathname, newPath, newName, newFilename, collectionPathname: collection.pathname })
.catch((err) => {
console.error(err);
throw new Error('Failed to rename the file');
throw new Error('Duplicate request names are not allowed under the same folder');
});
};