Skip to content

Commit 714ed0e

Browse files
authored
better error message for authorization account not existing (#458)
1 parent 52c350c commit 714ed0e

File tree

1 file changed

+4
-1
lines changed
  • architectures/decentralized/solana-client/src/command

1 file changed

+4
-1
lines changed

architectures/decentralized/solana-client/src/command/can_join.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ pub async fn command_can_join_execute(
4949
authorizer,
5050
);
5151
if backend.get_balance(&authorization).await? == 0 {
52-
bail!("Authorization does not exist for authorizer: {authorizer:?} and user: {address}");
52+
bail!(
53+
"Authorization does not exist for authorizer: {authorizer:?} (authorization address: {authorization:?}, join authority: {0:?}). Authorizer must be set to grantee pubkey for permissioned runs",
54+
coordinator_instance_state.join_authority
55+
);
5356
}
5457
if !backend
5558
.get_authorization(&authorization)

0 commit comments

Comments
 (0)