afh_recv: Improve error diagnostics.
authorAndre Noll <maan@tuebingen.mpg.de>
Tue, 9 Jan 2018 23:19:13 +0000 (00:19 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 8 Apr 2018 12:06:46 +0000 (14:06 +0200)
commit8bd3409c900850298da3dd961daaf0dfc2b5bf44
tree5dd865d02e51a34cb2da7f6c2c53166ecf50934a
parente8d5da94efd6cbb0aa75f57290c76d9992ff8f47
afh_recv: Improve error diagnostics.

There are many reasons for afh_recv_open() to fail. For example, the
afh receiver could be unable to open its input file, or the given
begin chunk was larger than the end chunk. At the moment the error
reporting is a bit scarce since only the string of the error code is
printed. This commit makes afh_recv_open() print also the reason for
the error and the name of the file that caused the error.
afh_recv.c