@@ -5,45 +5,45 @@ use thiserror::Error;
5
5
6
6
#[ derive( Error , Debug ) ]
7
7
pub enum HdfsError {
8
- #[ error( "IO error occurred while communicating with HDFS" ) ]
8
+ #[ error( "IO error occurred while communicating with HDFS: {0} " ) ]
9
9
IOError ( #[ from] io:: Error ) ,
10
- #[ error( "data transfer error" ) ]
10
+ #[ error( "data transfer error: {0} " ) ]
11
11
DataTransferError ( String ) ,
12
12
#[ error( "checksums didn't match" ) ]
13
13
ChecksumError ,
14
- #[ error( "invalid path" ) ]
14
+ #[ error( "invalid path: {0} " ) ]
15
15
InvalidPath ( String ) ,
16
- #[ error( "invalid argument" ) ]
16
+ #[ error( "invalid argument: {0} " ) ]
17
17
InvalidArgument ( String ) ,
18
- #[ error( "failed to parse URL" ) ]
18
+ #[ error( "failed to parse URL: {0} " ) ]
19
19
UrlParseError ( #[ from] url:: ParseError ) ,
20
- #[ error( "file already exists" ) ]
20
+ #[ error( "file already exists: {0} " ) ]
21
21
AlreadyExists ( String ) ,
22
- #[ error( "operation failed" ) ]
22
+ #[ error( "operation failed: {0} " ) ]
23
23
OperationFailed ( String ) ,
24
- #[ error( "file not found" ) ]
24
+ #[ error( "file not found: {0} " ) ]
25
25
FileNotFound ( String ) ,
26
- #[ error( "blocks not found" ) ]
26
+ #[ error( "blocks not found for {0} " ) ]
27
27
BlocksNotFound ( String ) ,
28
- #[ error( "path is a directory" ) ]
28
+ #[ error( "path is a directory: {0} " ) ]
29
29
IsADirectoryError ( String ) ,
30
- #[ error( "unsupported erasure coding policy" ) ]
30
+ #[ error( "unsupported erasure coding policy {0} " ) ]
31
31
UnsupportedErasureCodingPolicy ( String ) ,
32
- #[ error( "erasure coding error" ) ]
32
+ #[ error( "erasure coding error: {0} " ) ]
33
33
ErasureCodingError ( String ) ,
34
- #[ error( "operation not supported" ) ]
34
+ #[ error( "operation not supported: {0} " ) ]
35
35
UnsupportedFeature ( String ) ,
36
- #[ error( "interal error, this shouldn't happen" ) ]
36
+ #[ error( "interal error, this shouldn't happen: {0} " ) ]
37
37
InternalError ( String ) ,
38
- #[ error( "failed to decode RPC response" ) ]
38
+ #[ error( "failed to decode RPC response: {0} " ) ]
39
39
InvalidRPCResponse ( #[ from] DecodeError ) ,
40
- #[ error( "RPC error" ) ]
40
+ #[ error( "RPC error: {0} {1} " ) ]
41
41
RPCError ( String , String ) ,
42
- #[ error( "fatal RPC error" ) ]
42
+ #[ error( "fatal RPC error: {0} {1} " ) ]
43
43
FatalRPCError ( String , String ) ,
44
- #[ error( "SASL error" ) ]
44
+ #[ error( "SASL error: {0} " ) ]
45
45
SASLError ( String ) ,
46
- #[ error( "GSSAPI error" ) ]
46
+ #[ error( "GSSAPI error: {0:?} {1} {2} " ) ]
47
47
GSSAPIError ( crate :: security:: gssapi:: GssMajorCodes , u32 , String ) ,
48
48
#[ error( "No valid SASL mechanism found" ) ]
49
49
NoSASLMechanism ,
0 commit comments