better warning message

This commit is contained in:
Ken Martin 2002-10-15 14:33:11 -04:00
parent e4e920ef6c
commit 876645af51
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}