summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmLoadCommandCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx
index 70107cf..857422c 100644
--- a/Source/cmLoadCommandCommand.cxx
+++ b/Source/cmLoadCommandCommand.cxx
@@ -205,7 +205,8 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& argsIn)
if(!lib)
{
std::string err = "Attempt to load the library ";
- err += fullPath + " failed";
+ err += fullPath + " failed. Additional error info is:\n";
+ err += cmDynamicLoader::LastError();
this->SetError(err.c_str());
return false;
}