From 9b67be9b4af1f130b3959435ec21d631b695d93a Mon Sep 17 00:00:00 2001 From: Dave Marco Date: Tue, 5 Nov 2024 15:57:22 +0000 Subject: [PATCH] fix print statement --- src/clp_ffi_js/ir/decoding_methods.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clp_ffi_js/ir/decoding_methods.cpp b/src/clp_ffi_js/ir/decoding_methods.cpp index 21a14a6f..99e1cecb 100644 --- a/src/clp_ffi_js/ir/decoding_methods.cpp +++ b/src/clp_ffi_js/ir/decoding_methods.cpp @@ -54,13 +54,13 @@ auto get_version(clp::ReaderInterface& reader) -> std::string { clp::ffi::ir_stream::deserialize_preamble(reader, metadata_type, metadata_bytes) }; if (clp::ffi::ir_stream::IRErrorCode::IRErrorCode_Success != deserialize_preamble_result) { - SPDLOG_CRITICAL("Failed to deserialize preamble for version reading"); + SPDLOG_CRITICAL("Failed to deserialize preamble for version reading: {}", clp::enum_to_underlying_type(deserialize_preamble_result)); throw ClpFfiJsException{ clp::ErrorCode::ErrorCode_Failure, __FILENAME__, __LINE__, - "Failed to deserialize preamble for version reading" + std::format("Failed to deserialize preamble for version reading: {}", clp::enum_to_underlying_type(deserialize_preamble_result)) }; }