diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index b3ab7f23..af6d4c71 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1576,7 +1576,7 @@ template type_caster &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() + "''"); + (std::string) str(handle.get_type()) + " to C++ type '" + type_id() + "'"); #endif } return conv;