make error descriptions more useful
This commit is contained in:
parent
3a6ca629ca
commit
49fa0ff7e0
1 changed files with 6 additions and 6 deletions
12
src/error.rs
12
src/error.rs
|
@ -3,12 +3,12 @@ use custom_error::custom_error;
|
||||||
|
|
||||||
custom_error!{pub WebmetroError
|
custom_error!{pub WebmetroError
|
||||||
ResourcesExceeded = "resources exceeded",
|
ResourcesExceeded = "resources exceeded",
|
||||||
EbmlError{source: crate::ebml::EbmlError} = "EBML error",
|
EbmlError{source: crate::ebml::EbmlError} = "EBML error: {source}",
|
||||||
HttpError{source: http::Error} = "HTTP error",
|
HttpError{source: http::Error} = "HTTP error: {source}",
|
||||||
HyperError{source: hyper::Error} = "Hyper error",
|
HyperError{source: hyper::Error} = "Hyper error: {source}",
|
||||||
IoError{source: std::io::Error} = "IO error",
|
IoError{source: std::io::Error} = "IO error: {source}",
|
||||||
TimerError{source: tokio::timer::Error} = "Timer error",
|
TimerError{source: tokio::timer::Error} = "Timer error: {source}",
|
||||||
WarpError{source: warp::Error} = "Warp error",
|
WarpError{source: warp::Error} = "Warp error: {source}",
|
||||||
ApplicationError{message: String} = "{message}"
|
ApplicationError{message: String} = "{message}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue