Skip to content

Commit

Permalink
Throw exception if cannot resolve compile source directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mmanela committed Dec 19, 2015
1 parent 57cd510 commit 3113fcc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Chutzpah/ChutzpahTestSettingsService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,13 @@ private void ResolveBatchCompileConfiguration(ChutzpahTestSettingsFile settings,
}

// These settings might be needed in either External
settings.Compile.SourceDirectory = ResolveFolderPath(settings, settings.Compile.SourceDirectory);
var sourceDir = settings.Compile.SourceDirectory;
settings.Compile.SourceDirectory = ResolveFolderPath(settings, sourceDir);
if(settings.Compile.SourceDirectory == null)
{
throw new DirectoryNotFoundException("Unable to find directory specified by Compile SourceDirectory setting of " + (sourceDir ?? ""));
}

settings.Compile.OutDirectory = ResolveFolderPath(settings, ExpandVariable(chutzpahVariables, settings.Compile.OutDirectory), true);
}
}
Expand Down

0 comments on commit 3113fcc

Please sign in to comment.