You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
remote/client: add hint for the labgrid-client allow command
Add a hint for the labgrid-client allow command in lock error messages.
Given the error message suggests that removing the lock is necessary
(using unlock or kick), add a hint that there is also third choice.
Signed-off-by: Sven Püschel <[email protected]>
raiseUserError(f"place {place.name} is not acquired by your user, acquired by {user}")
451
+
raiseUserError(
452
+
f"place {place.name} is not acquired by your user, acquired by {user}. To work simultaneously, {user} can execute labgrid-client -p {place.name} allow {self.gethostname()}/{self.getuser()}"
453
+
)
452
454
ifhost!=self.gethostname():
453
-
raiseUserError(f"place {place.name} is not acquired on this computer, acquired on {host}")
455
+
raiseUserError(
456
+
f"place {place.name} is not acquired on this computer, acquired on {host}. To allow this host, use labgrid-client -p {place.name} allow {self.gethostname()}/{self.getuser()} on the other host"
raiseUserError(f"place {place.name} is not idle (acquired by {place.acquired})")
475
+
_, user=place.acquired.split("/")
476
+
raiseUserError(
477
+
f"place {place.name} is not idle (acquired by {place.acquired}). To work simultaneously, {user} can execute labgrid-client -p {place.name} allow {self.gethostname()}/{self.getuser()}"
0 commit comments