Skip to content

Commit e66b765

Browse files
authored
Log and throw error on initialization (#5156)
1 parent cf40d87 commit e66b765

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/WebJobs.Script.WebHost/App_Start/WebHostResolver.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ internal void EnsureInitialized(WebHostSettings settings)
202202
{
203203
var errorEventId = new EventId(103, "HostInitializationError");
204204
_logger.LogError(errorEventId, initializationException, "Failed to initialize host");
205+
throw;
205206
}
206207
}
207208

0 commit comments

Comments
 (0)