Skip to content

Commit

Permalink
fix: Log plugin name in assertion (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
xseignard authored Sep 11, 2023
1 parent 297abae commit 648c363
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class FrameProcessorPluginRegistry {
@Keep
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! " +
"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);
}

Expand Down

2 comments on commit 648c363

@vercel
Copy link

@vercel vercel bot commented on 648c363 Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@duyanhv
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on android i got this error "Either choose unique names, or remove the unused plugin. Name: " whenever i reload the bundle. so i changed the above code to
if(!Plugins.containsKey(name)) Plugins.put(name, pluginInitializer);

Please sign in to comment.