Remove spurious quote in error message. (#1202)

This commit is contained in:
Antony Lee 2017-12-03 18:17:16 -08:00 committed by Wenzel Jakob
parent 83e73091f0
commit 7ab1cd34b1

View File

@ -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)"); 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;