feat(ft): fix remote reader handling of gen_rpc errors

This commit is contained in:
Ilya Averyanov 2023-02-13 15:19:21 +02:00
parent c44fe92ef1
commit 1d48a97fd2
1 changed files with 2 additions and 2 deletions

View File

@ -59,8 +59,8 @@ table(ReaderPid, Bytes) when is_pid(ReaderPid) andalso is_integer(Bytes) andalso
[];
{ok, Data} ->
[Data] ++ fun() -> NextFun(Pid) end;
{error, Reason} ->
?SLOG(warning, #{msg => "file_read_error", reason => Reason}),
{ErrorKind, Reason} when ErrorKind =:= badrpc; ErrorKind =:= error ->
?SLOG(warning, #{msg => "file_read_error", kind => ErrorKind, reason => Reason}),
[]
end
end,