Skip to content

Commit

Permalink
Change device connect error message
Browse files Browse the repository at this point in the history
  • Loading branch information
callumforrester committed May 31, 2024
1 parent 88bfae0 commit 2aab175
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/blueapi/core/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ def with_dodal_module(self, module: ModuleType, **kwargs) -> None:
# If exceptions have occurred, we log them but we do not make blueapi
# fall over
if len(exceptions) > 0:
LOGGER.warning(f"{len(exceptions)} device(s) failed to connect")
LOGGER.warning(
f"{len(exceptions)} exceptions occurred while instantiating devices"
)
LOGGER.exception(NotConnected(exceptions))

def plan(self, plan: PlanGenerator) -> PlanGenerator:
Expand Down

0 comments on commit 2aab175

Please sign in to comment.