Permalink
Browse files

adding more logging

  • Loading branch information...
1 parent da226f7 commit 7f8db8a578bffb3b257a0548d002e96cfdd493fc @drusellers drusellers committed Jul 15, 2011
Showing with 9 additions and 1 deletion.
  1. +9 −1 src/Bottles.Deployment/Parsing/DeploymentPlan.cs
@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using System.Text;
using Bottles.Deployment.Configuration;
using Bottles.Deployment.Runtime;
using FubuCore;
@@ -190,7 +191,14 @@ private IEnumerable<Recipe> buildEntireRecipeGraph(IEnumerable<Recipe> allRecipe
}
catch (Exception)
{
- throw new Exception("Couldn't find recipe '{0}'".ToFormat(r));
+ var message = new StringBuilder();
+ message.AppendFormat("Couldn't find recipe '{0}'", r);
+ message.AppendLine();
+ message.AppendLine("Recipes found were:");
+ allRecipesAvailable.Each(rcp => message.AppendFormat(" {0}", rcp));
+
+ message.AppendLine();
+ throw new Exception(message.ToString());
}
});

0 comments on commit 7f8db8a

Please sign in to comment.