Skip to content
Browse files

Calling rake nuget for packaging, added configuration results to exce…

…ption message
  • Loading branch information...
1 parent bce8da4 commit 628200d3ea349d419ef05e6a9bff7024c5a25af3 @phatboyg phatboyg committed May 5, 2011
Showing with 8 additions and 2 deletions.
  1. +1 −1 build.bat
  2. +7 −1 src/MassTransit/Configuration/Configurators/ConfigurationResultImpl.cs
View
2 build.bat
@@ -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
View
8 src/MassTransit/Configuration/Configurators/ConfigurationResultImpl.cs
@@ -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;
}

0 comments on commit 628200d

Please sign in to comment.
Something went wrong with that request. Please try again.