mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 14:15:11 +00:00
Remove spurious quote in error message. (#1202)
This commit is contained in:
parent
83e73091f0
commit
7ab1cd34b1
@ -1577,7 +1577,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)");
|
||||
#else
|
||||
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
|
||||
}
|
||||
return conv;
|
||||
|
Loading…
Reference in New Issue
Block a user