Skip to content

Commit

Permalink
chore: improve error wording
Browse files Browse the repository at this point in the history
  • Loading branch information
joemonem committed Jan 10, 2025
1 parent b0b5b63 commit 115c8cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ fn execute_send_cw20(
ensure!(
splitter.lock.is_expired(&ctx.env.block),
ContractError::ContractLocked {
msg: Some("Config isn't allowed if the splitter is locked".to_string())
msg: Some("Config isn't allowed while the splitter is locked".to_string())
}
);
validate_recipient_list(deps.as_ref(), config.clone())?;
Expand Down Expand Up @@ -303,7 +303,7 @@ fn execute_send(
ensure!(
splitter.lock.is_expired(&ctx.env.block),
ContractError::ContractLocked {
msg: Some("Config isn't allowed if the splitter is locked".to_string())
msg: Some("Config isn't allowed while the splitter is locked".to_string())
}
);
validate_recipient_list(deps.as_ref(), config.clone())?;
Expand Down
2 changes: 1 addition & 1 deletion contracts/finance/andromeda-splitter/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ fn execute_send_cw20(
ensure!(
splitter.lock.is_expired(&ctx.env.block),
ContractError::ContractLocked {
msg: Some("Config isn't allowed if the splitter is locked".to_string())
msg: Some("Config isn't allowed while the splitter is locked".to_string())
}
);
validate_recipient_list(deps.as_ref(), config.clone())?;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ fn execute_send(
ensure!(
splitter.lock.is_expired(&ctx.env.block),
ContractError::ContractLocked {
msg: Some("Config isn't allowed if the splitter is locked".to_string())
msg: Some("Config isn't allowed while the splitter is locked".to_string())
}
);
// Max 100 recipients
Expand Down

0 comments on commit 115c8cb

Please sign in to comment.