Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pyaml/configuration/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def build_object(self, d: dict, ignore_external: bool = False):
self.register_element(obj)
except Exception as e:
raise PyAMLConfigException(
f"{str(e)} when creating '{module.__name__}.{class_str}' {location_str}"
f"{str(e)} when creating unbounded '{module.__name__}.{class_str}' {location_str}"
) from e

return obj
Expand All @@ -152,7 +152,7 @@ def build_unbound(self, e: UnboundElement, holder) -> Element:
try:
obj = e._class(holder, e._config)
except Exception as ex:
raise PyAMLConfigException(f"{str(ex)} when creating '{e._module_name}.{e._class_name}'") from ex
raise PyAMLConfigException(f"{str(ex)} when creating '{e._module_name}.{e._class.__name__}'") from ex

if not isinstance(obj, Element):
raise PyAMLConfigException(f"'{e._module_name}.{e._class.__name__}' is not a sub class of Element")
Expand Down
Loading