From 3dfafe0f5fe1a595470959a5600562bbecdbfeee Mon Sep 17 00:00:00 2001 From: Lisanna Dettwyler Date: Fri, 27 Sep 2024 12:06:13 -0400 Subject: [PATCH] Replace exception with error string return in zello_log.h Fixes VLCLJ-2305 Signed-off-by: Lisanna Dettwyler --- samples/include/zello_log.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/include/zello_log.h b/samples/include/zello_log.h index 417c2033..0493ca7a 100644 --- a/samples/include/zello_log.h +++ b/samples/include/zello_log.h @@ -645,8 +645,8 @@ std::string to_string(const ze_result_t result) { } else if (result == ZE_RESULT_ERROR_UNKNOWN) { return "ZE_RESULT_ERROR_UNKNOWN"; } else { - throw std::runtime_error("Unknown ze_result_t value: " + - std::to_string(static_cast(result))); + return "Unknown ze_result_t value: " + + std::to_string(static_cast(result)); } }