Skip to content

Commit a30afa5

Browse files
committed
chore: use constant in error message
1 parent 023baf8 commit a30afa5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

google/cloud/bigtable/value.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,10 @@ std::ostream& operator<<(std::ostream& os, Value const& v) {
343343

344344
Status CheckDepthExceeded(int const depth) {
345345
if (depth > kMaxValueDepth) {
346-
return internal::InternalError("Nested value depth exceeds 10 levels",
347-
GCP_ERROR_INFO());
346+
return internal::InternalError(
347+
absl::Substitute("Nested value depth exceeds $0 levels",
348+
kMaxValueDepth),
349+
GCP_ERROR_INFO());
348350
}
349351
return Status{};
350352
}

0 commit comments

Comments
 (0)