From 7f8db8a578bffb3b257a0548d002e96cfdd493fc Mon Sep 17 00:00:00 2001 From: Dru Sellers Date: Fri, 15 Jul 2011 13:30:05 -0500 Subject: [PATCH] adding more logging --- src/Bottles.Deployment/Parsing/DeploymentPlan.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/Bottles.Deployment/Parsing/DeploymentPlan.cs b/src/Bottles.Deployment/Parsing/DeploymentPlan.cs index a868f48..f855c53 100644 --- a/src/Bottles.Deployment/Parsing/DeploymentPlan.cs +++ b/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 buildEntireRecipeGraph(IEnumerable 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()); } });