projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use constant for max msats
[rust-lightning]
/
lightning
/
src
/
util
/
errors.rs
diff --git
a/lightning/src/util/errors.rs
b/lightning/src/util/errors.rs
index 1b29916e0f56b5e700032ebdff470253eb48f30b..7119c3a023a17d39dd1f657bad2e35f80477bc75 100644
(file)
--- a/
lightning/src/util/errors.rs
+++ b/
lightning/src/util/errors.rs
@@
-9,7
+9,7
@@
pub enum APIError {
/// are documented, but generally indicates some precondition of a function was violated.
APIMisuseError {
/// A human-readable error message
/// are documented, but generally indicates some precondition of a function was violated.
APIMisuseError {
/// A human-readable error message
- err:
&'static str
+ err:
String
},
/// Due to a high feerate, we were unable to complete the request.
/// For example, this may be returned if the feerate implies we cannot open a channel at the
},
/// Due to a high feerate, we were unable to complete the request.
/// For example, this may be returned if the feerate implies we cannot open a channel at the
@@
-31,7
+31,7
@@
pub enum APIError {
/// peer, channel at capacity, channel shutting down, etc.
ChannelUnavailable {
/// A human-readable error message
/// peer, channel at capacity, channel shutting down, etc.
ChannelUnavailable {
/// A human-readable error message
- err:
&'static str
+ err:
String
},
/// An attempt to call add/update_monitor returned an Err (ie you did this!), causing the
/// attempted action to fail.
},
/// An attempt to call add/update_monitor returned an Err (ie you did this!), causing the
/// attempted action to fail.