Skip to content

Commit 7f7f547

Browse files
authored
Update error message when parsing DescriptorPublicKey
Sorry if there are lint issues, I can try fixing them later. Directly editing from github web UI
1 parent db7b25c commit 7f7f547

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/descriptor/key.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,8 @@ impl FromStr for DescriptorPublicKey {
486486
// A "raw" public key without any origin is the least we accept.
487487
if s.len() < 64 {
488488
return Err(DescriptorKeyParseError(
489-
"Key too short (<66 char), doesn't match any format",
489+
"Key too short (<64 characters); use parse_descriptor for parsing \
490+
descriptors with private keys.",
490491
));
491492
}
492493

0 commit comments

Comments
 (0)