Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Add -caused by- into format_short
It is necessary for various interface points to actually provide information about exception. E.g. if used in conjunction with - datalad#7648 - /home/yoh/proj/misc/AnnexRemote then we would not only obtain although quite loaded but meaningful error result rendering: download_url(error): /tmp/ (file) [AccessFailedError(Failed to establish a new session 1 times. ) -caused by- HTTPSConnectionPool(host='singularity-hub.org', port=443): Max retries exceeded with url: /api/container/datalad/datalad-container:testhelper (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)')))] [Failed to establish a new session 1 times. ] we would also make git-annex report the reason!: ❯ git annex addurl shub://datalad/datalad-container:testhelper addurl shub://datalad/datalad-container:testhelper AccessFailedError(Failed to establish a new session 1 times. ) -caused by- HTTPSConnectionPool(host='singularity-hub.org', port=443): Max retries exceeded with url: /api/container/datalad/datalad-container:testhelper (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1000)'))) failed addurl: 1 failed
- Loading branch information