Browse Source

Plugins loader message enhancement

Yann Weber 7 years ago
parent
commit
c363b4c588
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lodel/plugin/plugins.py

+ 2
- 2
lodel/plugin/plugins.py View File

@@ -611,7 +611,7 @@ name differ from the one found in plugin's init file"
611 611
         #Here we check that previous discover found a plugin with that name
612 612
         pdcache = cls.discover()
613 613
         if plugin_name not in pdcache:
614
-            raise PluginError("No plugin named %s found" % plugin_name)
614
+            raise PluginError("No plugin named '%s' found" % plugin_name)
615 615
         ptype = pdcache[plugin_name]['type']
616 616
         pcls = MetaPlugType.type_from_name(ptype)
617 617
         plugin = pcls(plugin_name)
@@ -806,7 +806,7 @@ name differ from the one found in plugin's init file"
806 806
         try:
807 807
             res_module = loader.load_module()
808 808
         except Exception as e:
809
-            raise PluginError("Unable to import initfile")
809
+            raise PluginError("Unable to import initfile : %s" % e)
810 810
         return (res_module, temp_module)
811 811
 
812 812
     @classmethod

Loading…
Cancel
Save