diff --git a/DysonNetwork.Pass/Program.cs b/DysonNetwork.Pass/Program.cs index 300fec2..2d15467 100644 --- a/DysonNetwork.Pass/Program.cs +++ b/DysonNetwork.Pass/Program.cs @@ -36,7 +36,14 @@ app.MapDefaultEndpoints(); using (var scope = app.Services.CreateScope()) { var db = scope.ServiceProvider.GetRequiredService(); - await db.Database.MigrateAsync(); + try + { + await db.Database.MigrateAsync(); + } + catch (Exception err) + { + Console.WriteLine(err); + } } // Configure application middleware pipeline @@ -47,4 +54,4 @@ app.ConfigureGrpcServices(); app.UseSwaggerManifest(); -app.Run(); \ No newline at end of file +app.Run();