Skip to content

Commit f76c0dc

Browse files
authored
Qualify the error code in grpc_util.cc with StatusCode (#6024)
1 parent 19b65ea commit f76c0dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Firestore/core/src/remote/grpc_util.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ Status ConvertStatus(const grpc::Status& from) {
3636
// conversion should be safe.
3737
// See
3838
// https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto
39-
HARD_ASSERT(
40-
error_code >= grpc::CANCELLED && error_code <= grpc::UNAUTHENTICATED,
41-
"Unknown gRPC error code: %s", error_code);
39+
HARD_ASSERT(error_code >= grpc::StatusCode::CANCELLED &&
40+
error_code <= grpc::StatusCode::UNAUTHENTICATED,
41+
"Unknown gRPC error code: %s", error_code);
4242

4343
return {static_cast<Error>(error_code), from.error_message()};
4444
}

0 commit comments

Comments
 (0)