Skip to content

Commit 2e4936f

Browse files
committed
Minor error message fixes
1 parent 769a2d2 commit 2e4936f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/error.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pub enum Error {
2121
ChannelCreationFailed,
2222
/// A channel could not be closed.
2323
ChannelClosingFailed,
24-
/// A channel config could not be updated.
24+
/// A channel configuration could not be updated.
2525
ChannelConfigUpdateFailed,
2626
/// Persistence failed.
2727
PersistenceFailed,
@@ -47,7 +47,7 @@ pub enum Error {
4747
InvalidSecretKey,
4848
/// The given payment hash is invalid.
4949
InvalidPaymentHash,
50-
/// The given payment preimage is invalid.
50+
/// The given payment pre-image is invalid.
5151
InvalidPaymentPreimage,
5252
/// The given payment secret is invalid.
5353
InvalidPaymentSecret,
@@ -59,9 +59,9 @@ pub enum Error {
5959
InvalidChannelId,
6060
/// The given network is invalid.
6161
InvalidNetwork,
62-
/// A payment with the given hash has already been intiated.
62+
/// A payment with the given hash has already been initiated.
6363
DuplicatePayment,
64-
/// There are insufficient funds to complete the given operation.
64+
/// The available funds are insufficient to complete the given operation.
6565
InsufficientFunds,
6666
}
6767

@@ -104,7 +104,7 @@ impl fmt::Display for Error {
104104
write!(f, "A payment with the given hash has already been initiated.")
105105
}
106106
Self::InsufficientFunds => {
107-
write!(f, "There are insufficient funds to complete the given operation.")
107+
write!(f, "The available funds are insufficient to complete the given operation.")
108108
}
109109
}
110110
}

0 commit comments

Comments
 (0)