Fixed exception type

This commit is contained in:
Bjarke Berg
2024-01-13 22:24:44 +01:00
parent eb8a27016e
commit ea9226f169

View File

@@ -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<IMigrationProviderSetup> migrationProviders = StaticServiceProvider.Instance.GetServices<IMigrationProviderSetup>();