Francois Gouget : testbot/TestAgent: _SetError() may be called when connecting, that is outside any RPC.

Alexandre Julliard julliard at winehq.org
Wed Mar 12 13:33:36 CDT 2014


Module: tools
Branch: master
Commit: 6157405f4a6dd1e45f3ca6aabc78c8750e6e75d2
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=6157405f4a6dd1e45f3ca6aabc78c8750e6e75d2

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Wed Mar 12 14:25:29 2014 +0100

testbot/TestAgent: _SetError() may be called when connecting, that is outside any RPC.

---

 testbot/lib/WineTestBot/TestAgent.pm |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index f313984..c138663 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -212,7 +212,8 @@ sub _SetError($$$)
     # We did not even manage to connect but record the error anyway
     $self->{err} = $Msg;
   }
-  debug($RpcNames{$self->{rpcid}} || $self->{rpcid}, ": $self->{err}\n");
+  my $RpcName = defined $self->{rpcid} ? $RpcNames{$self->{rpcid}} || $self->{rpcid} : "Connect";
+  debug("$RpcName: $self->{err}\n");
 }
 
 sub GetLastError($)




More information about the wine-cvs mailing list