diff --git a/src/ReC.Application/Common/Procedures/InsertProcedure/InsertObjectProcedure.cs b/src/ReC.Application/Common/Procedures/InsertProcedure/InsertObjectProcedure.cs index 3e59de7..7e7bc23 100644 --- a/src/ReC.Application/Common/Procedures/InsertProcedure/InsertObjectProcedure.cs +++ b/src/ReC.Application/Common/Procedures/InsertProcedure/InsertObjectProcedure.cs @@ -130,10 +130,7 @@ public class InsertObjectProcedureHandler(IRepository repo, SqlExceptionOptions catch (SqlException ex) { if (sqlExceptionOptions.SqlExceptionNumber.Contains(ex.Number)) - throw new BadRequestException( - $"Insert '{request.Entity}' failed because one or more referenced entities do not exist. " + - "Please verify the supplied identifiers and try again.\n" + - ex.Message, ex); + throw new BadRequestException(ex.Message, ex); else throw; }