Fix error messages

Error messages did not reflect actual function names.
This commit is contained in:
Tobias Stoeckmann
2022-03-19 10:59:43 +01:00
parent f0d93cee14
commit 6e533471a8
2 changed files with 13 additions and 12 deletions

View File

@@ -945,14 +945,15 @@ int json_c_set_serialization_double_format(const char *double_format, int global
}
tls_serialization_float_format = double_format ? strdup(double_format) : NULL;
#else
_json_c_set_last_err("json_c_set_option: not compiled with __thread support\n");
_json_c_set_last_err("json_c_set_set_serialization_double_format: not compiled "
"with __thread support\n");
return -1;
#endif
}
else
{
_json_c_set_last_err("json_c_set_option: invalid global_or_thread value: %d\n",
global_or_thread);
_json_c_set_last_err("json_c_set_serialization_double_format: invalid "
"global_or_thread value: %d\n", global_or_thread);
return -1;
}
return 0;