Skip to content

Commit 570bfe3

Browse files
avsejDemetrisChr
authored andcommitted
fix(rcb_query.cxx): add missing bucket_name to error message
The bucket_name parameter was missing from the fmt::format call in cb_Backend_query_index_build_deferred, causing the error message to not include the bucket name when reporting deferred index build failures. Which in turn caused build failure with recent GCC, where fmtlib tries to validate format strings compile-time.
1 parent fd7b831 commit 570bfe3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/rcb_query.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ cb_Backend_query_index_build_deferred(VALUE self,
536536
cb_throw_error(
537537
resp.ctx,
538538
fmt::format(R"(unable to build deferred indexes on the bucket "{}" ({}: {}))",
539+
req.bucket_name,
539540
first_error.code,
540-
541541
first_error.message));
542542
} else {
543543
cb_throw_error(

0 commit comments

Comments
 (0)