diff --git a/api/Program.cs b/api/Program.cs index 77dfb40..29c9248 100644 --- a/api/Program.cs +++ b/api/Program.cs @@ -54,7 +54,6 @@ public static async Task StartApi(string[] args) await dbContainer.StartAsync(); var connectionString = dbContainer.GetConnectionString() + ";Include Error Detail=true;"; - Console.WriteLine(connectionString); builder.Services.AddDbContextFactory(options => { options.UseNpgsql(connectionString ?? throw new Exception("Connection string cannot be null")); @@ -132,7 +131,7 @@ await userRepository.CreateUser(new RegisterUserDto } catch (Exception e) { - e.Handle(socket, message); + e.Handle(socket, e.Message); } }; });