You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2014/04/30 05:50:40 UTC

[3/5] git commit: Better error message for protobuf::write.

Better error message for protobuf::write.

Review: https://reviews.apache.org/r/20072


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/054e1944
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/054e1944
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/054e1944

Branch: refs/heads/master
Commit: 054e1944e7f6f244efb4ecbf568e448059080c09
Parents: 406ba14
Author: Benjamin Hindman <be...@gmail.com>
Authored: Sun Apr 6 18:56:08 2014 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Tue Apr 29 20:44:58 2014 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/include/stout/protobuf.hpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/054e1944/3rdparty/libprocess/3rdparty/stout/include/stout/protobuf.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/include/stout/protobuf.hpp b/3rdparty/libprocess/3rdparty/stout/include/stout/protobuf.hpp
index ea5665a..ddc13e9 100644
--- a/3rdparty/libprocess/3rdparty/stout/include/stout/protobuf.hpp
+++ b/3rdparty/libprocess/3rdparty/stout/include/stout/protobuf.hpp
@@ -47,7 +47,8 @@ namespace protobuf {
 inline Try<Nothing> write(int fd, const google::protobuf::Message& message)
 {
   if (!message.IsInitialized()) {
-    return Error("Uninitialized protocol buffer");
+    return Error(message.InitializationErrorString() +
+                 " is required but not initialized");
   }
 
   // First write the size of the protobuf.