From e4ed3bb6dae7faf95a43ba3cdbb1de745d75fdd4 Mon Sep 17 00:00:00 2001 From: Artur Wilniewczyc Date: Thu, 11 Jul 2013 12:47:46 +0200 Subject: Add missing brackets to report formatting on ftp_progress process exit When progress reporting process exits, ftp client crashes because of missing brackets in io_lib:format argument. --- lib/inets/src/ftp/ftp.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/inets/src') diff --git a/lib/inets/src/ftp/ftp.erl b/lib/inets/src/ftp/ftp.erl index 132a384a49..5d9887a9a4 100644 --- a/lib/inets/src/ftp/ftp.erl +++ b/lib/inets/src/ftp/ftp.erl @@ -1417,7 +1417,7 @@ handle_info({'DOWN', _Ref, _Type, Process, Reason}, State) -> handle_info({'EXIT', Pid, Reason}, #state{progress = Pid} = State) -> Report = io_lib:format("Progress reporting stopped for reason ~p~n", - Reason), + [Reason]), error_logger:info_report(Report), {noreply, State#state{progress = ignore}}; -- cgit v1.2.3