Skip to content

Commit 3956e22

Browse files
evermind-zzStypox
authored andcommitted
merge later ../extractor/src/main/java/org/schabi/newpipe/extractor/search/filter/FilterGroup.java
1 parent 8409215 commit 3956e22

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

  • extractor/src/main/java/org/schabi/newpipe/extractor/search/filter

extractor/src/main/java/org/schabi/newpipe/extractor/search/filter/FilterGroup.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,11 @@ void uniqueIdChecker(final Map<Integer, FilterItem> filterItems,
136136
}
137137

138138
if (filterItems.containsKey(item.getIdentifier())) {
139-
final FilterItem storedItem = filterItems.get(item.getIdentifier());
140139
throw new InvalidFilterIdException("Filter ID "
141-
+ item.getIdentifier() + " for \"" + item.getName()
142-
+ "\" already taken from \"" + storedItem.getName() + "\"");
140+
+ item.getIdentifier() + " for \""
141+
+ item.getClass().getCanonicalName()
142+
+ "\" is used multiple times."
143+
+ " Filter ID's have to be unique per service");
143144
}
144145
}
145146

0 commit comments

Comments
 (0)