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();