Permalink
Browse files

return message in error in Razor Partial

  • Loading branch information...
1 parent f4e3b5c commit 02a443de9065f5a0d63022134c5022d5b2f6828c @dchurchland dchurchland 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 02a443d

Please sign in to comment.