Skip to content

Commit

Permalink
Calling rake nuget for packaging, added configuration results to exce…
Browse files Browse the repository at this point in the history
…ption message
  • Loading branch information
phatboyg committed May 5, 2011
1 parent bce8da4 commit 628200d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ call rake unclean
IF NOT %ERRORLEVEL% == 0 goto FAILED

echo Creating NU package
lib\nuget pack nugets\MassTransit.nuspec /OutputDirectory build_artifacts
call rake nuget
IF NOT %ERRORLEVEL% == 0 goto FAILED

echo Create ZIP package
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ public static ConfigurationResult CompileResults(IEnumerable<ValidationResult> r
var result = new ConfigurationResultImpl(results);

if (result.Results.Any(x => x.Disposition == ValidationResultDisposition.Failure))
throw new ConfigurationException(result, "The service bus was not properly configured (see Results for details)");
{
string message = "The service bus was not properly configured:" +
Environment.NewLine +
string.Join(Environment.NewLine, result.Results.Select(x => x.Message).ToArray());

throw new ConfigurationException(result, message);
}

return result;
}
Expand Down

0 comments on commit 628200d

Please sign in to comment.