netbird
netbird copied to clipboard
Error displayed instead of a Status when peer has been removed
Steps to reproduce.
- Enroll a peer
- Make sure it is connected to the management service
- Remove peer from the management service
- run
netbird statuscommand
Output:
netbird status
Error: status failed: provided peer with the key wgPubKey hOCcdJixg7waW5WxbHSxy5KnYEkvdJVP9H/F423CvjY= is not registered and no setup key or jwt was provided, remote addr is 127.0.0.1:57582
Expected something like that or other Status, e.g. Idle
Daemon version: development
CLI version: development
Daemon status: Idle
Management: Disconnected
Signal: Disconnected
NetBird IP: N/A
Interface type: N/A
Peers count: 0/0 Connected
P.S. I think that is worth adding a new field ErrorMessage to StatusResponse. Along with status, it will show the latest error received.