From 7ea0c074329dd55de43ea3b07ff545228cb0d729 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 27 Aug 2025 13:27:55 +0200 Subject: feat: `must_pass` should call error_handler instead of trapping. (FIX) Signed-off-by: Amlal El Mahrouss --- dev/lib/fix/parser.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dev/lib/fix') diff --git a/dev/lib/fix/parser.hpp b/dev/lib/fix/parser.hpp index a93b846..6e8e57a 100644 --- a/dev/lib/fix/parser.hpp +++ b/dev/lib/fix/parser.hpp @@ -201,12 +201,12 @@ namespace ocl::fix } }; - template - inline void must_pass(basic_range_data& basic_range) + template + inline void must_pass(basic_range_data& basic_range, error_handler& handler) { if (!basic_range.is_valid()) { - ::kill(::getpid(), SIGTRAP); + handler("Invalid FIX packet"); } } -- cgit v1.2.3