diff --git a/include/turtle/detail/parameter.hpp b/include/turtle/detail/parameter.hpp index 1db8228..b21a19a 100644 --- a/include/turtle/detail/parameter.hpp +++ b/include/turtle/detail/parameter.hpp @@ -60,7 +60,9 @@ namespace mock { namespace detail { template struct parameter { - static_assert(n < function_arity::value, "Function signature has not that many parameters"); + // This assertion is usually triggered when the arity passed to e.g. MOCK_METHOD exceeds the number of + // parameters of the mocked function or the passed function signature + static_assert(n < function_arity::value, "Parameter index exceeds the number of parameters"); using type = typename tuple_element::type>::type; }; template