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 2016/03/03 22:18:59 UTC
mesos git commit: Removed trailing periods in Failure strings.
Repository: mesos
Updated Branches:
refs/heads/master 708c7eeaf -> 01a4d0bd5
Removed trailing periods in Failure strings.
Review: https://reviews.apache.org/r/44325/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/01a4d0bd
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/01a4d0bd
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/01a4d0bd
Branch: refs/heads/master
Commit: 01a4d0bd504d0ceb63da3dfc72b50a481fa45c8e
Parents: 708c7ee
Author: Alexander Rukletsov <ru...@gmail.com>
Authored: Thu Mar 3 11:46:53 2016 -0800
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Thu Mar 3 13:18:41 2016 -0800
----------------------------------------------------------------------
3rdparty/libprocess/src/metrics/metrics.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/01a4d0bd/3rdparty/libprocess/src/metrics/metrics.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/metrics/metrics.cpp b/3rdparty/libprocess/src/metrics/metrics.cpp
index 8812fe2..f1e6774 100644
--- a/3rdparty/libprocess/src/metrics/metrics.cpp
+++ b/3rdparty/libprocess/src/metrics/metrics.cpp
@@ -145,7 +145,7 @@ string MetricsProcess::help()
Future<Nothing> MetricsProcess::add(Owned<Metric> metric)
{
if (metrics.contains(metric->name())) {
- return Failure("Metric '" + metric->name() + "' was already added.");
+ return Failure("Metric '" + metric->name() + "' was already added");
}
metrics[metric->name()] = metric;
@@ -156,7 +156,7 @@ Future<Nothing> MetricsProcess::add(Owned<Metric> metric)
Future<Nothing> MetricsProcess::remove(const string& name)
{
if (!metrics.contains(name)) {
- return Failure("Metric '" + name + "' not found.");
+ return Failure("Metric '" + name + "' not found");
}
metrics.erase(name);
@@ -189,7 +189,7 @@ Future<http::Response> MetricsProcess::_snapshot(const http::Request& request)
if (duration.isError()) {
return http::BadRequest(
- "Invalid timeout '" + parameter + "':" + duration.error() + ".\n");
+ "Invalid timeout '" + parameter + "': " + duration.error() + ".\n");
}
timeout = duration.get();