From 7ab1cd34b1ec9cb3bac1aeb960baf34e4dd460ca Mon Sep 17 00:00:00 2001 From: Antony Lee Date: Sun, 3 Dec 2017 18:17:16 -0800 Subject: [PATCH] Remove spurious quote in error message. (#1202) --- include/pybind11/cast.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/pybind11/cast.h b/include/pybind11/cast.h index 8c9ea02bc..c518169c4 100644 --- a/include/pybind11/cast.h +++ b/include/pybind11/cast.h @@ -1577,7 +1577,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;