Improved error when trying to register an already registered style
@@ -138,7 +138,7 @@ def component(self, obj, is_root=False):
def register_style(name, conf):
- assert name not in _styles
+ assert name not in _styles, f'{name} is already registered'
assert conf.name is None
conf.name = name
_styles[name] = conf
