comparison libervia/cli/cmd_pubsub.py @ 4226:3f7ca590a5da

cli (pubsub): use `PEP` when service is not specified in error message.
author Goffi <goffi@goffi.org>
date Tue, 05 Mar 2024 17:31:56 +0100
parents 47401850dec6
children 0d7bb4df2343
comparison
equal deleted inserted replaced
4225:cd889f4771cb 4226:3f7ca590a5da
83 self.args.node, 83 self.args.node,
84 self.profile, 84 self.profile,
85 ) 85 )
86 except BridgeException as e: 86 except BridgeException as e:
87 if e.condition == "item-not-found": 87 if e.condition == "item-not-found":
88 service = self.args.service or "PEP"
88 self.disp( 89 self.disp(
89 f"The node {self.args.node} doesn't exist on {self.args.service}", 90 f"The node {self.args.node} doesn't exist on {service}",
90 error=True, 91 error=True,
91 ) 92 )
92 self.host.quit(C.EXIT_NOT_FOUND) 93 self.host.quit(C.EXIT_NOT_FOUND)
93 else: 94 else:
94 self.disp(f"can't get node configuration: {e}", error=True) 95 self.disp(f"can't get node configuration: {e}", error=True)