Fix typos in error messages (#8726)

automerge
This commit is contained in:
Greg Fitzgerald 2020-03-09 11:12:42 -06:00 committed by GitHub
parent 6d0f3762b2
commit 97b6c41d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -86,7 +86,7 @@ impl StakeSubCommands for App<'_, '_> {
.takes_value(true)
.validator(is_amount)
.required(true)
.help("The amount of send to the vote account, in SOL")
.help("The amount to send to the stake account, in SOL")
)
.arg(
Arg::with_name("custodian")

View File

@ -12,15 +12,15 @@ use thiserror::Error;
#[derive(Error, Debug, Serialize, Clone, PartialEq, FromPrimitive, ToPrimitive)]
pub enum SystemError {
#[error("an account with the same addreess already exists")]
#[error("an account with the same address already exists")]
AccountAlreadyInUse,
#[error("account does not have enought lamports to perform the operation")]
#[error("account does not have enough lamports to perform the operation")]
ResultWithNegativeLamports,
#[error("cannot assign account to this program id")]
InvalidProgramId,
#[error("cannot allocate account data of this length")]
InvalidAccountDataLength,
#[error("length of requsted seed is too long")]
#[error("length of requested seed is too long")]
MaxSeedLengthExceeded,
#[error("provided address does not match addressed derived from seed")]
AddressWithSeedMismatch,