mirror of
https://github.com/pybind/pybind11.git
synced 2025-02-23 00:49:36 +00:00
Do not run error_string() more than once
This commit is contained in:
parent
6d0354b945
commit
2c5ad0bf9d
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -402,8 +402,7 @@ jobs:
|
||||
-DCMAKE_CXX_STANDARD=11 \
|
||||
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") \
|
||||
-DCMAKE_CXX_FLAGS="-Wc,--pending_instantiations=0" \
|
||||
-DPYBIND11_TEST_FILTER="test_smart_ptr.cpp;test_virtual_functions.cpp" \
|
||||
-DCMAKE_BUILD_TYPE=Debug
|
||||
-DPYBIND11_TEST_FILTER="test_smart_ptr.cpp;test_virtual_functions.cpp"\
|
||||
|
||||
# Building before installing Pip should produce a warning but not an error
|
||||
- name: Build
|
||||
|
@ -398,7 +398,7 @@ public:
|
||||
try {
|
||||
m_lazy_what = detail::error_string(m_type.ptr(), m_value.ptr(), m_trace.ptr());
|
||||
} catch (...) {
|
||||
return "Unknown internal error occurred";
|
||||
m_lazy_what = "Unknown internal error occurred";
|
||||
}
|
||||
}
|
||||
return m_lazy_what.c_str();
|
||||
|
Loading…
Reference in New Issue
Block a user