make error descriptions more useful

This commit is contained in:
Tangent 128 2019-10-15 23:36:23 -04:00
parent 3a6ca629ca
commit 49fa0ff7e0
1 changed files with 6 additions and 6 deletions

View File

@ -3,12 +3,12 @@ use custom_error::custom_error;
custom_error!{pub WebmetroError
ResourcesExceeded = "resources exceeded",
EbmlError{source: crate::ebml::EbmlError} = "EBML error",
HttpError{source: http::Error} = "HTTP error",
HyperError{source: hyper::Error} = "Hyper error",
IoError{source: std::io::Error} = "IO error",
TimerError{source: tokio::timer::Error} = "Timer error",
WarpError{source: warp::Error} = "Warp error",
EbmlError{source: crate::ebml::EbmlError} = "EBML error: {source}",
HttpError{source: http::Error} = "HTTP error: {source}",
HyperError{source: hyper::Error} = "Hyper error: {source}",
IoError{source: std::io::Error} = "IO error: {source}",
TimerError{source: tokio::timer::Error} = "Timer error: {source}",
WarpError{source: warp::Error} = "Warp error: {source}",
ApplicationError{message: String} = "{message}"
}