Surface error
All checks were successful
Build Docker Image / nix-flake-check (push) Successful in 1m25s
Build Docker Image / docker-build (push) Successful in 2m1s
Build Docker Image / arm-docker-build (push) Successful in 4m35s

This commit is contained in:
Gabriel Simmer 2023-11-10 14:01:40 +00:00
parent 216f4fc461
commit 8c56100f04
Signed by: arch
SSH key fingerprint: SHA256:m3OEcdtrnBpMX+2BDGh/byv3hrCekCLzDYMdvGEKPPQ

View file

@ -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)
}
}
}