Fixed exception type
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user