[openSUSE/osc] 81d198: Improve error message in case of an URLError
Branch: refs/heads/master Home: https://github.com/openSUSE/osc Commit: 81d1985bc5b1ea30a58a3057b09d85d206bb39f7 https://github.com/openSUSE/osc/commit/81d1985bc5b1ea30a58a3057b09d85d206bb3... Author: Marcus Huewe <suse-tux@gmx.de> Date: 2021-09-30 (Thu, 30 Sep 2021) Changed paths: M osc/babysitter.py M osc/core.py Log Message: ----------- Improve error message in case of an URLError The old code does not print any information about the host, for which the access failed, in case of an URLError. In order to fix this, add information about the host (and port) to the URLError instance in core.http_request and use this information in the babysitter to print out a more detailed error message (which includes the host (and port)). For now, we simply add a "private" "_osc_host_port" attribute to the URLError instance (this way we avoid potential name clashes (due to the "_osc" prefix) and could come up with a different/more clever way in the future (due to its privateness)). Fixes: #954 ("Better diagnostic for domain name issues") Commit: 26aea786da1dd42908c74bdaa238ab0c58091cde https://github.com/openSUSE/osc/commit/26aea786da1dd42908c74bdaa238ab0c58091... Author: Marcus Huewe <suse-tux@gmx.de> Date: 2021-10-11 (Mon, 11 Oct 2021) Changed paths: M osc/babysitter.py M osc/core.py Log Message: ----------- Merge branch 'improve_URLError_msg' of https://github.com/marcus-h/osc Improve error message in case of an URLError. Compare: https://github.com/openSUSE/osc/compare/2b1c04757b01...26aea786da1d
participants (1)
-
Marcus Hüwe