mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-16 22:35:04 -05:00
Make conflict messages more clear
This commit is contained in:
parent
b244aba3f2
commit
700b02b172
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user