mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-04 06:23:30 +08:00
Remove spurious quote in error message. (#1202)
This commit is contained in:
parent
cf0d0f9d5a
commit
a303c6fc47
@ -1576,7 +1576,7 @@ template <typename T, typename SFINAE> type_caster<T, SFINAE> &load_type(type_ca
|
|||||||
throw cast_error("Unable to cast Python instance to C++ type (compile in debug mode for details)");
|
throw cast_error("Unable to cast Python instance to C++ type (compile in debug mode for details)");
|
||||||
#else
|
#else
|
||||||
throw cast_error("Unable to cast Python instance of type " +
|
throw cast_error("Unable to cast Python instance of type " +
|
||||||
(std::string) str(handle.get_type()) + " to C++ type '" + type_id<T>() + "''");
|
(std::string) str(handle.get_type()) + " to C++ type '" + type_id<T>() + "'");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
return conv;
|
return conv;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user