bitcoin-dev-project/warnet

warcli: network commands report errors when no network is running

Opened this issue · 0 comments

This is just aesthetic/doesn't impact usage, but it would be nice to have friendlier errors when you run network status/info with no network running.

warcli network info
-> -32000: Server error

warcli network status
-> -32000: Error getting network status: [Errno 2] No such file or directory: '/root/.warnet/warnet/warnet/graph.graphml'