Handle {error, bad_arg} on read
This commit is contained in:
parent
2724960eaf
commit
85e1e5a26d
1 changed files with 2 additions and 0 deletions
|
@ -519,6 +519,8 @@ do_read_chunk2(File, Offset, Size, Depth, STime, TO,
|
|||
{ok, BadChunk} ->
|
||||
exit({todo, bad_chunk_size, ?MODULE, ?LINE, File, Offset, Size,
|
||||
got, byte_size(BadChunk)});
|
||||
{error, bad_arg} = BadArg ->
|
||||
{reply, BadArg, S};
|
||||
{error, partial_read}=Err ->
|
||||
{reply, Err, S};
|
||||
{error, bad_checksum}=BadCS ->
|
||||
|
|
Loading…
Reference in a new issue