aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2013-05-22 11:38:14 +0200
committerSiri Hansen <[email protected]>2013-06-04 11:04:08 +0200
commita2a30c6e89249f4683d0d3359845eb4f9dacd0ec (patch)
tree993eae1c858072fb8cfd9b9f9fbd9721f52ae32b /lib
parent007f058825d12f7ea642d8c5ed4d6dca44341a6c (diff)
downloadotp-a2a30c6e89249f4683d0d3359845eb4f9dacd0ec.tar.gz
otp-a2a30c6e89249f4683d0d3359845eb4f9dacd0ec.tar.bz2
otp-a2a30c6e89249f4683d0d3359845eb4f9dacd0ec.zip
[ct_netconfc] Improve error printout
Diffstat (limited to 'lib')
-rw-r--r--lib/common_test/src/ct_netconfc.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/common_test/src/ct_netconfc.erl b/lib/common_test/src/ct_netconfc.erl
index 1339e53780..28586c310e 100644
--- a/lib/common_test/src/ct_netconfc.erl
+++ b/lib/common_test/src/ct_netconfc.erl
@@ -1302,7 +1302,8 @@ handle_data(NewData,#state{connection=Connection,buff=Buff} = State) ->
decode(Simple,State#state{buff=Rest});
{fatal_error,_Loc,Reason,_EndTags,_EventState} ->
?error(Connection#connection.name,[{parse_error,Reason},
- {data,Data}]),
+ {buffer,Buff},
+ {new_data,NewData}]),
case Reason of
{could_not_fetch_data,Msg} ->
handle_msg(Msg,State#state{buff = <<>>});