mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-11 08:03:55 +00: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)");
|
||||
#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