This commit is contained in:
mterwoord_cp 2009-01-04 10:29:48 +00:00
parent 596dc568a7
commit e58cc3d1db

View file

@ -77,9 +77,9 @@ namespace Cosmos.Compiler.Builder {
int xPos = xCalculatedPath.LastIndexOf("source");
if (xPos == -1)
{
xPos = xCalculatedPath.LastIndexOf("BuildOutput");
xPos = xCalculatedPath.LastIndexOf("buildoutput");
if(xPos == -1) {
throw new Exception("Unable to find directory named 'source' when using CurrentDirectory.");
throw new Exception("Unable to find directory named 'BuildOutput' or 'Source' when using CurrentDirectory. (CurrentDirectory = '" +Environment.CurrentDirectory + "')");
}
}
xCalculatedPath = xCalculatedPath.Substring(0, xPos) + @"Build\";