Surface error
This commit is contained in:
parent
216f4fc461
commit
8c56100f04
|
@ -184,7 +184,10 @@ async fn metrics_handler(State(config): State<Config>) -> Result<impl IntoRespon
|
|||
.status(StatusCode::OK)
|
||||
.body(Full::from(b))
|
||||
.unwrap()),
|
||||
Err(_e) => Err(StatusCode::INTERNAL_SERVER_ERROR),
|
||||
Err(e) => {
|
||||
println!("{}", e);
|
||||
Err(StatusCode::INTERNAL_SERVER_ERROR)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue