send-email: send_message die on $!, not $?
authorÆvar Arnfjörð Bjarmason <redacted>
Thu, 30 Sep 2010 13:43:07 +0000 (13:43 +0000)
committerJunio C Hamano <redacted>
Thu, 30 Sep 2010 19:20:33 +0000 (12:20 -0700)
commit5e2c2ab1599f0a7a26b58adf1a3b9314e51bfb5e
treef52d768cedb890f444efd38982db4c170bb109f2
parente9bf741b887aadd227557804d3560ebd07b1dd09
send-email: send_message die on $!, not $?

If close fails we want to emit errno, not the return code of whatever
happened to be the child process run.

Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Reviewed-by: Jeff King <redacted>
>
Signed-off-by: Junio C Hamano <redacted>
git-send-email.perl
git clone https://git.99rst.org/PROJECT