Skip to content

Commit 829079f

Browse files
remote/client: include place name in acquire error messages
When acquiring multiple places at once via an environment config, the user needs to know which places were affected by the error. Signed-off-by: Bastian Krause <bst@pengutronix.de>
1 parent a9b59e4 commit 829079f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

labgrid/remote/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,10 +724,10 @@ async def _acquire_place(self, place):
724724
allowhelp = f"'labgrid-client -p {place.name} allow {self.gethostname()}/{self.getuser()}' on {host}."
725725
if self.getuser() == user:
726726
if self.gethostname() == host:
727-
raise UserError("You have already acquired this place.")
727+
raise UserError(f"You have already acquired place {place.name}.")
728728
else:
729729
raise UserError(
730-
f"You have already acquired this place on {host}. To work simultaneously, execute {allowhelp}"
730+
f"You have already acquired place {place.name} on {host}. To work simultaneously, execute {allowhelp}"
731731
)
732732
else:
733733
raise UserError(

0 commit comments

Comments
 (0)