mirror of
https://github.com/json-c/json-c.git
synced 2026-03-29 01:49:06 +08:00
Fix error messages
Error messages did not reflect actual function names.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user