diff options
author | Gennadiy Civil <gennadiycivil@users.noreply.github.com> | 2017-08-21 10:37:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-21 10:37:53 -0400 |
commit | 675686a139a731a2c796633e67e9421792363709 (patch) | |
tree | c8fd5daf18f2a8dc65d6a8a2088f328bf4cd81d5 /googlemock/src | |
parent | 780bae0facea90a5b2105cbc09e87d99887c2e23 (diff) | |
parent | 1ee8079651584b6bcc444f4b7a66dd2c65a79eb6 (diff) | |
download | googletest-675686a139a731a2c796633e67e9421792363709.tar.gz googletest-675686a139a731a2c796633e67e9421792363709.tar.bz2 googletest-675686a139a731a2c796633e67e9421792363709.zip |
Merge pull request #1206 from ShadowIce/methodname-in-exception
Add function name to exception if there's no default action
Diffstat (limited to 'googlemock/src')
-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 2fa1ee4b..f761f97e 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. |