Kimahriman / hdfs-native

Apache License 2.0
32 stars 12 forks source link

revise the HdfsError to print more information #141

Closed mawenqi closed 2 weeks ago

mawenqi commented 1 month ago

The internal error messages contained in various errors should also be printed out, which means adding {0} in error macro.

As shown in the following code:

#[derive(Error, Debug)]
pub enum HdfsError {
    #[error("IO error occurred while communicating with HDFS: {0}")]
    IOError(#[from] io::Error),
    #[error("data transfer error: {0}")]
    DataTransferError(String),
    ...
}
Kimahriman commented 2 weeks ago

Ah didn't realize that, I've just been debug outputting the errors, will update