From 3bc0c4469ccd85bb0b0296885044b9b8724b216f Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 23 May 2001 14:44:35 -0400 Subject: [PATCH] ENH: add better error message --- Source/cmSystemTools.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index da0afec30..c9445153a 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -888,7 +888,8 @@ void cmSystemTools::SplitProgramPath(const char* in_name, std::string oldDir = in_name; cmSystemTools::ConvertToUnixSlashes(oldDir); cmSystemTools::Error("Error splitting file name off end of path:\n", - oldDir.c_str()); + oldDir.c_str(), "\nDirectory not found: ", + dir.c_str()); dir = in_name; return; }