turquoiseowl / i18n

Smart internationalization for ASP.NET
Other
556 stars 156 forks source link

Display inner exception if available during post build #350

Closed peters closed 6 years ago

peters commented 6 years ago

If Web.config contains errors, such as an unrecognized attribute it's difficult to determine the actual error without the inner exception since it basically reads the following:

ERROR: Could not load configuration. Either incorrect path was sent in or if no path was sent in web.config could not be found where expected

With this PR you can easily spot the error:

"Unrecognized attribute 'name'. Note that attribute names are case-sensitive. (C:\\Users\\user\\Documents\\GitHub\\www.mysite.no\\src\\www.mysite.no\\Web.config line 63)"

/cc @turquoiseowl

turquoiseowl commented 6 years ago

Nice one, thanks.