Skip to content

Commit

Permalink
Remove spurious quote in error message. (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
anntzer authored and wjakob committed Dec 4, 2017
1 parent cf0d0f9 commit a303c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/pybind11/cast.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a303c6f

Please sign in to comment.