Re: [PATCH v4 2/2] http-fetch: redact url on die() message
flat view
From: Ivan Frade <hidden>
Date: 2021-10-28 22:44:29
On Thu, Oct 28, 2021 at 10:26 AM Eric Sunshine [off-list ref] wrote:
On Thu, Oct 28, 2021 at 12:46 PM Ævar Arnfjörð Bjarmason [off-list ref] wrote:
quoted
nit: die() messages should start with lower-case (in CodingGuidelines), and I think it's better to quote both, so: die("unable to get pack '%s': '%s'", ...) Or maybe without the second '%s', as in 3e8084f1884 (http: check CURLE_SSL_PINNEDPUBKEYNOTMATCH when emitting errors, 2021-09-24) (which I authored, but just copy/pasted the convention in the surrounding code)>Note that this is not a new die() call; it just got indented as-is by this patch, so the changes you suggest to the message string are potentially outside the scope of this patch. Possibilities: (1) make the changes in this patch but mention them in the commit message; (2) make the changes in a preparatory patch; (3) punt on the changes for now.
I went for option (1). It is a minimal change and we are moving that line in this commit. Ivan