diff options
author | Maurice Gilden <Maurice.Gilden@teamviewer.com> | 2017-07-27 09:12:12 (GMT) |
---|---|---|
committer | Maurice Gilden <Maurice.Gilden@teamviewer.com> | 2017-08-16 15:53:16 (GMT) |
commit | 5b4166f05fbc133d165b54e25fef2c88430bbc2c (patch) | |
tree | 5cae6920c8d2ce0508f5bc5248ce52d7171c26d5 /googlemock | |
parent | 5ed471caec6f341018707e74e0dc41201fb59edd (diff) | |
download | googletest-5b4166f05fbc133d165b54e25fef2c88430bbc2c.zip googletest-5b4166f05fbc133d165b54e25fef2c88430bbc2c.tar.gz googletest-5b4166f05fbc133d165b54e25fef2c88430bbc2c.tar.bz2 |
Add function name to exception if there's no default action
Diffstat (limited to 'googlemock')
-rw-r--r-- | googlemock/src/gmock-spec-builders.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googlemock/src/gmock-spec-builders.cc b/googlemock/src/gmock-spec-builders.cc index 2fa1ee4..f761f97 100644 --- a/googlemock/src/gmock-spec-builders.cc +++ b/googlemock/src/gmock-spec-builders.cc @@ -364,7 +364,7 @@ UntypedFunctionMockerBase::UntypedInvokeWith(const void* const untyped_args) if (!need_to_report_uninteresting_call) { // Perform the action without printing the call information. - return this->UntypedPerformDefaultAction(untyped_args, ""); + return this->UntypedPerformDefaultAction(untyped_args, "Function call: " + std::string(Name())); } // Warns about the uninteresting call. |