From ea9226f16990ff153af9378afb7f1f99fdc68139 Mon Sep 17 00:00:00 2001 From: Bjarke Berg Date: Sat, 13 Jan 2024 22:24:44 +0100 Subject: [PATCH] Fixed exception type --- src/Umbraco.Cms.Persistence.EFCore/UmbracoDbContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Cms.Persistence.EFCore/UmbracoDbContext.cs b/src/Umbraco.Cms.Persistence.EFCore/UmbracoDbContext.cs index 3df757ee15..2cfa3239fd 100644 --- a/src/Umbraco.Cms.Persistence.EFCore/UmbracoDbContext.cs +++ b/src/Umbraco.Cms.Persistence.EFCore/UmbracoDbContext.cs @@ -59,7 +59,7 @@ public class UmbracoDbContext : DbContext // we're throwing an exception here to make it abundantly clear that one should never utilize (or have a // dependency on) the DbContext before the connection string has been initialized by the installer. - throw new ConfigurationErrorsException("No connection string was found, cannot setup Umbraco EF Core context"); + throw new InvalidOperationException("No connection string was found, cannot setup Umbraco EF Core context"); } IEnumerable migrationProviders = StaticServiceProvider.Instance.GetServices();