diff --git a/src/ReC.Application/Common/Behaviors/Action/PreprocessingBehavior.cs b/src/ReC.Application/Common/Behaviors/Action/PreprocessingBehavior.cs index 9a3009b..ba33bda 100644 --- a/src/ReC.Application/Common/Behaviors/Action/PreprocessingBehavior.cs +++ b/src/ReC.Application/Common/Behaviors/Action/PreprocessingBehavior.cs @@ -1,4 +1,5 @@ using MediatR; +using ReC.Application.Common.Exceptions; using ReC.Application.Common.Interfaces; using ReC.Application.RecActions.Commands; using ReC.Application.Results.Commands; @@ -33,7 +34,7 @@ public class PreprocessingBehavior(IRecDbContext context, ISender sender) : IPip }, cancel); if (request.Action.ErrorAction == ErrorAction.Stop) - throw; + throw new RecActionException(request.Action.Id, request.Action.ProfileId, ex); } return await next(cancel);