From e376e2d6a81e1fb2e8afc1edb1fcfdcb10b027e7 Mon Sep 17 00:00:00 2001 From: marha Date: Tue, 3 Nov 2009 13:35:24 +0000 Subject: - Solved problem in generated error string when build-command failed. - Strip function now strips all white space (including \r and \n) --- tools/mhmake/src/build.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/mhmake/src/build.cpp') diff --git a/tools/mhmake/src/build.cpp b/tools/mhmake/src/build.cpp index 3d31b4605..d869fd69b 100644 --- a/tools/mhmake/src/build.cpp +++ b/tools/mhmake/src/build.cpp @@ -1655,7 +1655,7 @@ mh_time_t mhmakefileparser::BuildTarget(const refptr &Target,bool bChe if (!pMakefile->ExecuteCommand(Command)) { string ErrorMessage = string("Error running command: ")+ Command +"\n"; - ErrorMessage += "Command defined in makefile: " + GetMakeDir()->GetQuotedFullFileName(); + ErrorMessage += "Command defined in makefile: " + pMakefile->GetMakeDir()->GetQuotedFullFileName(); Target->SetCommandsMd5_32(0); /* Clear the md5 to make sure that the target is rebuild the next time mhmake is ran */ m_AutoDepsDirty=true; /* We need to update the autodeps file if the md5 has been changed */ throw ErrorMessage; -- cgit v1.2.3