Fixes: https://pagure.io/koji/issue/4151
Also the error from hub could be presented in better way, something like:
$ koji version Client: 1.34.1 Hub: Unreachable
Also the error from hub could be presented in better way
Currently, if I stop my hub, I get:
$ lkoji version Client: 1.34.1 Error: Unable to connect to server
Honestly, this looks clear enough, though perhaps some other error situations will not be as pretty.
Changing this is significantly more involved because the underlying code (ensure_connection and activate_session) exits on these errors.
ok, let's merge it as it is (scheduled for 1.35.1)
Metadata Update from @tkopecek: - Pull-request tagged with: testing-ready
Metadata Update from @mfilip: - Pull-request tagged with: testing-done
Commit 096a4979 fixes this pull-request
Pull-Request has been merged by mikem
Fixes: https://pagure.io/koji/issue/4151