From c21ae7ea3ec769f3f347f2245b71d450b7d8831a Mon Sep 17 00:00:00 2001 From: Vien Huynh Date: Tue, 1 Feb 2022 16:40:07 -0500 Subject: [PATCH] change NaN output warning message --- include/crow/json.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/crow/json.h b/include/crow/json.h index f00cac18f..fecf0b1b0 100644 --- a/include/crow/json.h +++ b/include/crow/json.h @@ -1775,7 +1775,7 @@ namespace crow if (v.nt == num_type::Floating_point) { if(isnan(v.num.d) || isinf(v.num.d)){ - CROW_LOG_WARNING << "JSON value is NaN or infinite."; + CROW_LOG_WARNING << "Invalid JSON value detected (" << v.num.d << "), ignoring" ; break; } #ifdef _MSC_VER