Skip to content

Commit

Permalink
handle e.message
Browse files Browse the repository at this point in the history
  • Loading branch information
juuwel committed Apr 25, 2024
1 parent 88efb71 commit d1e31b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ public static async Task<WebApplication> StartApi(string[] args)
await dbContainer.StartAsync();

var connectionString = dbContainer.GetConnectionString() + ";Include Error Detail=true;";
Console.WriteLine(connectionString);
builder.Services.AddDbContextFactory<ApplicationDbContext>(options =>
{
options.UseNpgsql(connectionString ?? throw new Exception("Connection string cannot be null"));
Expand Down Expand Up @@ -132,7 +131,7 @@ await userRepository.CreateUser(new RegisterUserDto
}
catch (Exception e)
{
e.Handle(socket, message);
e.Handle(socket, e.Message);
}
};
});
Expand Down

0 comments on commit d1e31b3

Please sign in to comment.