diff --git a/src/ReC.API/Program.cs b/src/ReC.API/Program.cs index 61156dc..f7a58b3 100644 --- a/src/ReC.API/Program.cs +++ b/src/ReC.API/Program.cs @@ -37,6 +37,7 @@ try { options.LuckyPennySoftwareLicenseKey = builder.Configuration["LuckyPennySoftwareLicenseKey"]; options.ConfigureRecActions(config.GetSection("RecAction")); + options.ConfigureSqlException(config.GetSection("SqlException")); }); builder.Services.AddRecInfrastructure(options => diff --git a/src/ReC.API/appsettings.json b/src/ReC.API/appsettings.json index 150bb3c..61431fb 100644 --- a/src/ReC.API/appsettings.json +++ b/src/ReC.API/appsettings.json @@ -8,7 +8,7 @@ "RecAction": { "MaxConcurrentInvocations": 5 }, - "SqlExceptionTranslator": { + "SqlException": { "ErrorMessages": { // https://learn.microsoft.com/en-us/dotnet/api/system.data.sqlclient.sqlexception.number "SqlExceptionNumber": [ 515 , 547, 2601, 2627]