Skip to content

Commit

Permalink
MONGOCRYPT-574 Indicate why "not all keys requested were satisfied" w…
Browse files Browse the repository at this point in the history
…as triggered (#628)

* Indicate why "not all keys requested were satisfied" was triggered

* format

---------

Co-authored-by: Kevin Albertson <[email protected]>
  • Loading branch information
kennwhite and kevinAlbs authored Apr 25, 2023
1 parent 6c9a499 commit d486196
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mongocrypt-key-broker.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,9 @@ bool _mongocrypt_key_broker_docs_done(_mongocrypt_key_broker_t *kb) {

/* If there are any requests left unsatisfied, error. */
if (!_all_key_requests_satisfied(kb)) {
return _key_broker_fail_w_msg(kb, "not all keys requested were satisfied");
return _key_broker_fail_w_msg(
kb,
"not all keys requested were satisfied. Verify that key vault DB/collection name was correctly specified.");
}

/* Transition to the next state.
Expand Down

0 comments on commit d486196

Please sign in to comment.