mirror of
https://github.com/gumyr/build123d.git
synced 2025-12-06 02:30:55 -08:00
Added error message for empty builder - Issue #71
This commit is contained in:
parent
668491514c
commit
632bba2753
1 changed files with 4 additions and 0 deletions
|
|
@ -200,6 +200,10 @@ class Builder(ABC):
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"Transferring object(s) to %s", type(self.builder_parent).__name__
|
"Transferring object(s) to %s", type(self.builder_parent).__name__
|
||||||
)
|
)
|
||||||
|
if self._obj is None:
|
||||||
|
raise RuntimeError(
|
||||||
|
f"{self._obj_name} is None - {self._tag} didn't create anything"
|
||||||
|
)
|
||||||
self.builder_parent._add_to_context(self._obj, mode=self.mode)
|
self.builder_parent._add_to_context(self._obj, mode=self.mode)
|
||||||
|
|
||||||
self.exit_workplanes = WorkplaneList._get_context().workplanes
|
self.exit_workplanes = WorkplaneList._get_context().workplanes
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue