toddams / RazorLight

Template engine based on Microsoft's Razor parsing engine for .NET Core
Apache License 2.0
1.53k stars 259 forks source link

Missing space in exception message #498

Closed BryceBarbara closed 2 years ago

BryceBarbara commented 2 years ago

https://github.com/toddams/RazorLight/blob/732fc8616cb57d572719e18348b1d9fdd3904866/src/RazorLight/TemplatePage.cs#L26

When compiled, it looks like:

throw new InvalidOperationException("IncludeFuncis not set");

It should be:

throw new InvalidOperationException(nameof(IncludeFunc) + " is not set"); 
jzabroski commented 2 years ago

ty. PR welcome

jzabroski commented 2 years ago

@BryceBarbara I already took care of this 5 days ago, see commit history.