On Fri, Sep 22, 2023 at 10:42:03AM +0000, Johannes Schindelin via GitGitGadget wrote: > From: Johannes Schindelin <johannes.schindelin@xxxxxx> > > When trying to obtain the MD5 of the Coverity Scan Tool (in order to > decide whether a cached version can be used or a new version has to be > downloaded), it is possible to get a 401 (Authorization required) due to > either an incorrect token, or even more likely due to an incorrect > Coverity project name. > > Let's detect that scenario and provide a helpful error message instead > of trying to go forward with an empty string instead of the correct MD5. Ah. :) I think using "curl --fail" is probably a simpler solution here. -Peff