From 7f7f547ff1ce7412b39ada5990e5ec4b55f6f8f5 Mon Sep 17 00:00:00 2001 From: Sanket Kanjalkar Date: Thu, 19 Dec 2024 05:07:10 -0800 Subject: [PATCH] Update error message when parsing DescriptorPublicKey Sorry if there are lint issues, I can try fixing them later. Directly editing from github web UI --- src/descriptor/key.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/descriptor/key.rs b/src/descriptor/key.rs index c2e1fa1cc..46f8dcae9 100644 --- a/src/descriptor/key.rs +++ b/src/descriptor/key.rs @@ -486,7 +486,8 @@ impl FromStr for DescriptorPublicKey { // A "raw" public key without any origin is the least we accept. if s.len() < 64 { return Err(DescriptorKeyParseError( - "Key too short (<66 char), doesn't match any format", + "Key too short (<64 characters); use parse_descriptor for parsing \ + descriptors with private keys.", )); }