Skip to content

Commit

Permalink
adding more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
drusellers committed Jul 15, 2011
1 parent da226f7 commit 7f8db8a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Bottles.Deployment/Parsing/DeploymentPlan.cs
@@ -1,6 +1,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text;
using Bottles.Deployment.Configuration; using Bottles.Deployment.Configuration;
using Bottles.Deployment.Runtime; using Bottles.Deployment.Runtime;
using FubuCore; using FubuCore;
Expand Down Expand Up @@ -190,7 +191,14 @@ private IEnumerable<Recipe> buildEntireRecipeGraph(IEnumerable<Recipe> allRecipe
} }
catch (Exception) 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());
} }
}); });


Expand Down

0 comments on commit 7f8db8a

Please sign in to comment.