We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60f7a34 commit 96021abCopy full SHA for 96021ab
1 file changed
src/ServiceStack/TemplatePagesFeature.cs
@@ -109,7 +109,15 @@ public void Register(IAppHost appHost)
109
if (initPage != null)
110
{
111
appHost.AfterInitCallbacks.Add(host => {
112
- var execInit = new PageResult(initPage).Result;
+ try
113
+ {
114
+ var execInit = new PageResult(initPage).Result;
115
+ Args["initout"] = execInit;
116
+ }
117
+ catch (Exception ex)
118
119
+ Args["initout"] = ex.ToString();
120
121
});
122
}
123
0 commit comments