From f1dfccd8ef8d831c3d14e11c03851c01d3b86d8c Mon Sep 17 00:00:00 2001 From: Philipp Jungkamp Date: Thu, 15 Jun 2023 16:51:30 +0200 Subject: [PATCH] fix release compile errors Signed-off-by: Philipp Jungkamp --- lib/nodes/iec60870.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/nodes/iec60870.cpp b/lib/nodes/iec60870.cpp index 126c145d7..65be0d701 100644 --- a/lib/nodes/iec60870.cpp +++ b/lib/nodes/iec60870.cpp @@ -203,7 +203,7 @@ std::optional ASDUData::checkASDU(CS101_ASDU const &asdu) cons } default: - assert(!"unreachable"); + throw RuntimeError { "unsupported asdu type" }; } std::optional time_cp56; @@ -761,7 +761,7 @@ int SlaveNode::parse(json_t *json, const uuid_t sn_uuid) break; default: - assert(!"unreachable"); + throw RuntimeError { "unsupported signal type" }; } } else initial_value.f = 0.0;