git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git quietly fails on https:// URL, https errors are never reported to user

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 17, 2014, 19:43 UTC
Message-ID
<xmqqmwiuwg0o.fsf@gitster.dls.corp.google.com>
In-Reply-To
<52D8FAA6.1010601@rawbw.com>
Yuri <yuri@rawbw.com> writes:
> I think that in a rare case of error this extra-printout wouldn't
> hurt.

If the "error is rare, extra verbiage does not hurt" were a valid attitude, "error is rare, non-zero exit is enough" would be equally valid ;-)

Also that statement contradicts with the rationale given by 266f1fdf (transport-helper: be quiet on read errors from helpers, 2013-06-21), no?

    However, this makes a much more common case worse: when a helper
    does die with a useful message, we print the extra "Reading from
    'git-remote-foo failed" message. This can also end up confusing
    users, as they may not even know what remote helpers are (e.g.,
    the fact that http support comes through git-remote-https is
    purely an implementation detail that most users do not know or
    care about).
    
Your change is not an exact revert and rewords the message to read
	Failure in 'http' protocol reader.
instead of
	Reading from helper 'git-remote-http' failed.

which avoids the "helper" word and replacing it with "protocol reader" [*1*] in an attempt to make it less likely to "end up confusing users", but I am not sure if "protocol reader" is good enough for those who get confused with "helper" in the first place. They will ask their resident guru or favourite search engine about the message and will be told that your http connection did not go well either way, but not many people have seen this new message.

If we were to reinstate the extra final line in the error message, I think we would be off doing a straight revert without any rewording that introduces yet another word "protocol reader" that is not found anywhere in our glossary.

I think I am OK with adding one more line after "Reading from ... failed" that explains a more detailed error message might be there above that line, but I am not sure what the good phrasing would be.

[Footnote]

*1* It may introduce a new confusion "was it 'read' that failed, or 'write'?", though ;-)

Previous: YuriNext: Jeff King
Message 5 of 9 in “git quietly fails on https:// URL, https errors are never reported to user”
  1. YuriJan 16, 2014
  2. Jeff KingJan 16, 2014
  3. YuriJan 16, 2014
  4. YuriJan 17, 2014
  5. Junio C HamanoJan 17, 2014
  6. Jeff KingJan 17, 2014
  7. Jeff KingJan 17, 2014
  8. YuriJan 17, 2014
  9. Jeff KingJan 17, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.