File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ pub enum Error {
355
355
/// Typechecking failed
356
356
TypeCheck ( String ) ,
357
357
/// General error in creating descriptor
358
- BadDescriptor ,
358
+ BadDescriptor ( String ) ,
359
359
/// Forward-secp related errors
360
360
Secp ( bitcoin:: secp256k1:: Error ) ,
361
361
#[ cfg( feature = "compiler" ) ]
@@ -471,7 +471,7 @@ impl fmt::Display for Error {
471
471
Error :: CouldNotSatisfy => f. write_str ( "could not satisfy" ) ,
472
472
Error :: BadPubkey ( ref e) => fmt:: Display :: fmt ( e, f) ,
473
473
Error :: TypeCheck ( ref e) => write ! ( f, "typecheck: {}" , e) ,
474
- Error :: BadDescriptor => f . write_str ( "could not create a descriptor" ) ,
474
+ Error :: BadDescriptor ( ref e ) => write ! ( f , "Invalid descriptor: {}" , e ) ,
475
475
Error :: Secp ( ref e) => fmt:: Display :: fmt ( e, f) ,
476
476
Error :: ContextError ( ref e) => fmt:: Display :: fmt ( e, f) ,
477
477
#[ cfg( feature = "compiler" ) ]
You can’t perform that action at this time.
0 commit comments