[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: icecream/client
From: Stephan Kulow <coolo () kde ! org>
Date: 2006-07-12 19:44:32
Message-ID: 1152733472.648098.28047.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 561636 by coolo:
display the error
M +12 -0 remote.cpp
--- trunk/icecream/client/remote.cpp #561635:561636
@@ -200,6 +200,15 @@
return usecs;
}
+static void check_for_failure( Msg *msg, MsgChannel *cserver )
+{
+ if ( msg && msg->type == M_STATUS_TEXT)
+ {
+ log_error() << static_cast<StatusTextMsg*>(msg)->text << " - compiled on " << \
cserver->name <<endl; + throw( 23 );
+ }
+}
+
static void write_server_cpp(int cpp_fd, MsgChannel *cserver)
{
unsigned char buffer[100000]; // some random but huge number
@@ -359,6 +368,7 @@
throw( 14 );
}
+ check_for_failure( msg, cserver );
if ( msg->type != M_COMPILE_RESULT ) {
log_warning() << "waited for compile result, but got " << (char)msg->type << \
endl; delete msg;
@@ -414,6 +424,8 @@
throw ( 19 );
}
+ check_for_failure( msg, cserver );
+
if ( msg->type == M_END )
break;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic