mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
tracing-trace: implement Error on Error
This commit is contained in:
parent
77254765e8
commit
0f327f2821
@ -3,6 +3,8 @@ pub enum Error {
|
|||||||
Json(serde_json::Error),
|
Json(serde_json::Error),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
impl std::error::Error for Error {}
|
||||||
|
|
||||||
impl std::fmt::Display for Error {
|
impl std::fmt::Display for Error {
|
||||||
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
|
||||||
f.write_str("error de/serializing trace entry:")?;
|
f.write_str("error de/serializing trace entry:")?;
|
||||||
|
Loading…
Reference in New Issue
Block a user