You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2017/02/24 22:42:56 UTC

[3/3] mesos git commit: Cleaned up an error message formatting.

Cleaned up an error message formatting.

This places the open and closing quotes on the same line.


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

Branch: refs/heads/master
Commit: eaec82802429fd43fb7c4c73ace74b2ad9c249e0
Parents: 949e78f
Author: Benjamin Mahler <bm...@apache.org>
Authored: Fri Feb 24 14:22:57 2017 -0800
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Fri Feb 24 14:34:33 2017 -0800

----------------------------------------------------------------------
 src/master/validation.cpp | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/eaec8280/src/master/validation.cpp
----------------------------------------------------------------------
diff --git a/src/master/validation.cpp b/src/master/validation.cpp
index 1f2343d..41ef0d0 100644
--- a/src/master/validation.cpp
+++ b/src/master/validation.cpp
@@ -604,10 +604,9 @@ Option<Error> validateAllocatedToSingleRole(const Resources& resources)
     }
 
     if (_role != role.get()) {
-      return Error(
-          "The resources have multiple allocation roles ('" + _role +
-          "' and '" + role.get() + "') but only one allocation role" +
-          " is allowed");
+      return Error("The resources have multiple allocation roles"
+                   " ('" + _role + "' and '" + role.get() + "')"
+                   " but only one allocation role is allowed");
     }
   }