From: Jeff King Date: Sat, 23 Sep 2023 07:07:35 GMT Subject: Re: [PATCH 6/6] coverity: detect and report when the token or project is incorrect Message-ID: <20230923070735.GC1471672@coredump.intra.peff.net> In-Reply-To: <458bc2ea91faf88a3e1d21945f12f314d1a7b78e.1695379323.git.gitgitgadget@gmail.com> On Fri, Sep 22, 2023 at 10:42:03AM +0000, Johannes Schindelin via GitGitGadget wrote: > From: Johannes Schindelin > > 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