From f26a8c3d231f202aa2c468d96971f0d80172f393 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 4 Mar 2024 10:14:37 +0100 Subject: improve missing clients error reporting in multiple commands All the commands that need target clients now have a more descriptive error message when the clients of the command are missing. --- cli/objects/poweroff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/objects/poweroff.py') diff --git a/cli/objects/poweroff.py b/cli/objects/poweroff.py index c8848c5..af309bf 100644 --- a/cli/objects/poweroff.py +++ b/cli/objects/poweroff.py @@ -50,7 +50,7 @@ class OgPoweroff(): ips.add(l) if not ips: - print("No clients found") + print("Missing --client-ip, or --room-id/--center-id. No clients provided.") return None payload = {'clients': list(ips)} -- cgit v1.2.3-18-g5258