1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 08:25:02 -04:00

Make conflict messages more clear

This commit is contained in:
Reinhard Pointner 2016-07-12 13:27:07 +08:00
parent b244aba3f2
commit 700b02b172

View File

@ -218,10 +218,10 @@ class RenameAction extends AbstractAction {
try {
if (renameMap.containsKey(source))
throw new IllegalArgumentException("Duplicate source file: " + source.getPath());
throw new IllegalArgumentException("Duplicate input path: " + source.getPath());
if (destinationFiles.contains(destination))
throw new IllegalArgumentException("Conflict detected: " + mapping.getValue().getPath());
throw new IllegalArgumentException("Duplicate output path: " + mapping.getValue());
if (destination.exists() && !resolve(mapping.getKey(), mapping.getValue()).equals(mapping.getKey()))
throw new IllegalArgumentException("File already exists: " + mapping.getValue().getPath());