You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ti...@apache.org on 2014/12/09 23:16:52 UTC

mesos git commit: Extended error message for module manager when library loading fails.

Repository: mesos
Updated Branches:
  refs/heads/master f8fc9d0a9 -> a33f1f9ae


Extended error message for module manager when library loading fails.

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


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

Branch: refs/heads/master
Commit: a33f1f9ae31630477c583d9eda9e39bbe710039c
Parents: f8fc9d0
Author: Till Toenshoff <to...@me.com>
Authored: Tue Dec 9 15:02:02 2014 -0700
Committer: Till Toenshoff <to...@me.com>
Committed: Tue Dec 9 15:15:43 2014 -0700

----------------------------------------------------------------------
 src/module/manager.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/a33f1f9a/src/module/manager.cpp
----------------------------------------------------------------------
diff --git a/src/module/manager.cpp b/src/module/manager.cpp
index b15b0fc..5e779e4 100644
--- a/src/module/manager.cpp
+++ b/src/module/manager.cpp
@@ -196,7 +196,8 @@ Try<Nothing> ModuleManager::load(const Modules& modules)
       Owned<DynamicLibrary> dynamicLibrary(new DynamicLibrary());
       Try<Nothing> result = dynamicLibrary->open(libraryName);
       if (!result.isSome()) {
-        return Error("Error opening library: '" + libraryName + "'");
+        return Error(
+            "Error opening library: '" + libraryName + "': " + result.error());
       }
 
       dynamicLibraries[libraryName] = dynamicLibrary;