Better boot fail error reporting

This commit is contained in:
Stephan
2017-05-31 15:25:07 +02:00
parent e17417c49f
commit d0abbf0664
6 changed files with 48 additions and 5 deletions

View File

@@ -105,6 +105,7 @@ namespace Umbraco.Core
{
_state.Level = RuntimeLevel.BootFailed;
var bfe = e as BootFailedException ?? new BootFailedException("Boot failed.", e);
_state.BootFailedException = bfe;
bootTimer.Fail(exception: bfe); // be sure to log the exception - even if we repeat ourselves
// throwing here can cause w3wp to hard-crash and we want to avoid it.