Permalink
Browse files

Merge pull request #534 from dchurchland/master

More complete message when Exception thrown on Razor Html Partial
  • Loading branch information...
2 parents f4e3b5c + 02a443d commit 25816c674f13c4c0cfb3b03a294d13f77552bfea @mythz mythz committed Mar 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/ServiceStack.Razor/Templating/TemplateService.ServiceStack.cs
@@ -147,8 +147,8 @@ public IRazorTemplate RenderPartial<T>(T model, string name, HtmlHelper htmlHelp
}
catch (Exception ex)
{
- throw new InvalidOperationException(
- "Could not execute partial: " + name + ", model: " + model);
+ throw new InvalidOperationException(
+ "Could not execute partial: " + name + ", model: " + model + ", message: " + ex.Message);
}
template.Prepend(capture);

0 comments on commit 25816c6

Please sign in to comment.