From 876645af517f6ac6e7681d0c8bac65cd8c6c1510 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Tue, 15 Oct 2002 14:33:11 -0400 Subject: [PATCH] better warning message --- Source/cmLoadCommandCommand.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index 70107cff8..857422cae 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -205,7 +205,8 @@ bool cmLoadCommandCommand::InitialPass(std::vector 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; }