diff options
Diffstat (limited to 'absl/status')
-rw-r--r-- | absl/status/internal/status_matchers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/status/internal/status_matchers.h b/absl/status/internal/status_matchers.h index d11742b7..0750622e 100644 --- a/absl/status/internal/status_matchers.h +++ b/absl/status/internal/status_matchers.h @@ -69,8 +69,8 @@ class IsOkAndHoldsMatcherImpl bool MatchAndExplain( StatusOrType actual_value, ::testing::MatchResultListener* result_listener) const override { - if (!actual_value.ok()) { - *result_listener << "which has status " << actual_value.status(); + if (!GetStatus(actual_value).ok()) { + *result_listener << "which has status " << GetStatus(actual_value); return false; } |