Re: [PATCH] git-send-email: don't return undefined value in extract_valid_address()
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Nov 20, 2012, 22:14 UTC
- Message-ID
- <7vvcczrkgi.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20121120204736.GA7039@shrek.podlesie.net>
Krzysztof Mazur <krzysiek@podlesie.net> writes:
> Yes, it's just to hide the warning, the error (warning in this case) it's > already correctly generated: > > W: unable to extract a valid address from: x a.patch
But it is of no use if the message is sent out without the intended recipient, no? It is too late when you notice it.
> Maybe we should change it to an error?
At least, when we are not giving the "final sanity check [Y/n]?" prompt, I think the code should error out.