@@ -40,22 +40,20 @@ pub struct HealthCheckInfo {
4040
4141#[ derive( thiserror:: Error , Debug ) ]
4242pub enum CommandRunError {
43- #[ error( "Asked to run an unknown command '{command} {subcommand}" ) ]
43+ #[ error( "Asked to run an unknown command '{command} {subcommand}' " ) ]
4444 UnknownCommandTarget { command : String , subcommand : String } ,
4545 #[ error( "Missing required argument: {name}" ) ]
4646 MissingRequiredArgument { name : String } ,
4747 #[ error( "Invalid value for argument '{name}': {message}" ) ]
4848 InvalidArgumentValue { name : String , message : String } ,
4949 #[ error(
50- "Local TLS certificate file at {local_path} does not exist, cannot be read or passed as a PEM file: {cause}"
50+ "Local TLS certificate file at {local_path} could not be parsed as a PEM file: {cause}"
5151 ) ]
5252 CertificateFileCouldNotBeLoaded1 {
5353 local_path : String ,
5454 cause : reqwest:: Error ,
5555 } ,
56- #[ error(
57- "Local TLS certificate file at {local_path} does not exist, cannot be read or passed as a PEM file: {cause}"
58- ) ]
56+ #[ error( "Local TLS certificate file at {local_path} could not be read: {cause}" ) ]
5957 CertificateFileCouldNotBeLoaded2 {
6058 local_path : String ,
6159 cause : rustls:: pki_types:: pem:: Error ,
@@ -72,7 +70,7 @@ pub enum CommandRunError {
7270 CertificateFileInvalidPem { local_path : String , details : String } ,
7371 #[ error( "TLS private key file at {local_path} contains an unsupported key type or format" ) ]
7472 PrivateKeyFileUnsupported { local_path : String } ,
75- #[ error( "TLS certificate and private key files do not match" ) ]
73+ #[ error( "TLS certificate {cert_path} and private key {key_path} do not match" ) ]
7674 CertificateKeyMismatch { cert_path : String , key_path : String } ,
7775 #[ error( "{}" , format_client_error( & . 0 . status_code, & . 0 . error_details) ) ]
7876 ClientError ( Box < HttpErrorInfo > ) ,
@@ -90,11 +88,11 @@ pub enum CommandRunError {
9088 MissingArgumentValue { property : String } ,
9189 #[ error( "Unsupported argument value for property (field) {property}" ) ]
9290 UnsupportedArgumentValue { property : String } ,
93- #[ error( "This request produces an invalid HTTP header value" ) ]
91+ #[ error( "This request produces an invalid HTTP header value: {error} " ) ]
9492 InvalidHeaderValue { error : InvalidHeaderValue } ,
95- #[ error( "Response is incompatible with the target data type" ) ]
93+ #[ error( "Response is incompatible with the target data type: {error} " ) ]
9694 IncompatibleBody { error : ConversionError } ,
97- #[ error( "Encountered an error when performing an HTTP request" ) ]
95+ #[ error( "Encountered an error when performing an HTTP request: {error} " ) ]
9896 RequestError { error : reqwest:: Error } ,
9997 #[ error( "Failed to build HTTP client: {0}" ) ]
10098 HttpClientBuildError ( reqwest:: Error ) ,
0 commit comments