cli (pubsub): use PEP when service is not specified in error message.

This commit is contained in:
Goffi 2024-03-05 17:31:56 +01:00
commit fa55bc6fb9

View file

@ -85,8 +85,9 @@ class NodeInfo(base.CommandBase):
)
except BridgeException as e:
if e.condition == "item-not-found":
service = self.args.service or "PEP"
self.disp(
f"The node {self.args.node} doesn't exist on {self.args.service}",
f"The node {self.args.node} doesn't exist on {service}",
error=True,
)
self.host.quit(C.EXIT_NOT_FOUND)