fix: Log plugin name in assertion (#1786)

This commit is contained in:
Xavier Seignard 2023-09-11 11:48:26 +02:00 committed by GitHub
parent 297abae6bb
commit 648c3638e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ public class FrameProcessorPluginRegistry {
@Keep @Keep
public static void addFrameProcessorPlugin(String name, PluginInitializer pluginInitializer) { public static void addFrameProcessorPlugin(String name, PluginInitializer pluginInitializer) {
assert !Plugins.containsKey(name) : "Tried to add a Frame Processor Plugin with a name that already exists! " + assert !Plugins.containsKey(name) : "Tried to add a Frame Processor Plugin with a name that already exists! " +
"Either choose unique names, or remove the unused plugin. Name: "; "Either choose unique names, or remove the unused plugin. Name: " + name;
Plugins.put(name, pluginInitializer); Plugins.put(name, pluginInitializer);
} }