mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 22:52:01 +00:00
fix: Add missing spaces to error string (#4906)
* [minor] Add a missing space Add a missing space to error message * Add space after period, always add newline.
This commit is contained in:
parent
fa27d2fd43
commit
1e28599e41
@ -310,14 +310,14 @@ private:
|
|||||||
"used for all translation units linked into a given pybind11 extension, otherwise "
|
"used for all translation units linked into a given pybind11 extension, otherwise "
|
||||||
"there will be ODR violations.",
|
"there will be ODR violations.",
|
||||||
function_name.c_str());
|
function_name.c_str());
|
||||||
fflush(stderr);
|
|
||||||
if (Py_TYPE(m_ptr)->tp_name != nullptr) {
|
if (Py_TYPE(m_ptr)->tp_name != nullptr) {
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"The failing %s call was triggered on a %s object.\n",
|
" The failing %s call was triggered on a %s object.",
|
||||||
function_name.c_str(),
|
function_name.c_str(),
|
||||||
Py_TYPE(m_ptr)->tp_name);
|
Py_TYPE(m_ptr)->tp_name);
|
||||||
fflush(stderr);
|
|
||||||
}
|
}
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
fflush(stderr);
|
||||||
throw std::runtime_error(function_name + " PyGILState_Check() failure.");
|
throw std::runtime_error(function_name + " PyGILState_Check() failure.");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user