Re: [PATCH v3 1/9] am: stop ignoring errors reported by log_tree_diff()
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jun 22, 2016, 12:21 UTC
- Message-ID
- <alpine.DEB.2.20.1606221421000.10382@virtualbox>
- In-Reply-To
- <xmqqporapdu8.fsf@gitster.mtv.corp.google.com>
Hi Junio,
On Tue, 21 Jun 2016, Junio C Hamano wrote:
Show 12 quoted lines
> Johannes Schindelin <johannes.schindelin@gmx.de> writes: > > > Note: there are more places in the builtin am code that ignore > > errors returned from library functions. Fixing those is outside the > > purview of the current patch series, though. > > The caller of parse_mail() and parse_mail_rebase() is not prepared > to see an error code in the returned value from these function, > which are to return a boolean telling the caller to skip or use the > patch file. At least the caller needs to notice negative return and > made to die/exit(128), instead of silently skipping a corrupt or > unopenable patch, no? Otherwise this will change the behaviour.
Yeah, that is another rabbit hole I really do not want to dive in.
Will leave it alone, Dscho