Revert "Removing deprecated/unused/outdated code"
[osm/RO.git] / RO / osm_ro / wim / errors.py
index e8d4b63..3175acd 100644 (file)
@@ -103,12 +103,10 @@ class UndefinedAction(HttpMappedError):
 class UndefinedWimConnector(DbBaseException):
     """The connector class for the specified wim type is not implemented"""
 
-    def __init__(self, wim_type, module_name, location_reference):
-        super(UndefinedWimConnector, self).__init__(
-            ('{}: `{}`. Could not find module `{}` '
-             '(check if it is necessary to install a plugin)'
-             .format(self.__class__.__doc__, wim_type, module_name)),
-            http_code=Bad_Request)
+    def __init__(self, wim_type, module_name):
+        super(UndefinedWimConnector, self).__init__("Cannot load a module for {t} type '{n}'. The plugin 'osm_{n}' has"
+                                                    " not been registered".format(t=wim_type, n=module_name),
+                                                    http_code=Bad_Request)
 
 
 class WimAccountOverwrite(DbBaseException):
@@ -143,7 +141,7 @@ class UndefinedUuidOrName(DbBaseException):
 
 
 class UndefinedWanMappingType(InvalidParameters):
-    """The dict wan_service_mapping_info MUST contain a `type` field"""
+    """The dict service_mapping_info MUST contain a `type` field"""
 
     def __init__(self, given):
         super(UndefinedWanMappingType, self).__init__(