change NaN output warning message

This commit is contained in:
Vien Huynh 2022-02-01 16:40:07 -05:00
parent a134e2b9ff
commit c21ae7ea3e

View File

@ -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