Fix error messages
Error messages did not reflect actual function names.
This commit is contained in:
1 parent
f0d93cee14
commit
6e533471a8
2 files changed
+13
-12
No files matched your search
+4
-3
@@ -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