Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.
/ NuGet.Jobs Public archive

Commit

Permalink
fail fast on db failure
Browse files Browse the repository at this point in the history
  • Loading branch information
chenriksson committed Aug 3, 2018
1 parent 4aca77f commit d41763d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/NuGet.Jobs.Common/JobBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ private async Task TestConnection(string name, ISqlConnectionFactory connectionF
{
Logger.LogError(0, e, "Failed to connect to database {DataSource}/{InitialCatalog}",
connectionFactory.DataSource, connectionFactory.InitialCatalog);

throw;
}
}

Expand Down

0 comments on commit d41763d

Please sign in to comment.