MCPcopy Create free account
hub / github.com/acking-you/static_flow / internal_error

Function internal_error

crates/backend/src/gpt2api_rs.rs:1825–1828  ·  view source on GitHub ↗
(err: impl std::fmt::Display)

Source from the content-addressed store, hash-verified

1823}
1824
1825fn internal_error(err: impl std::fmt::Display) -> (StatusCode, Json<ErrorResponse>) {
1826 tracing::error!("gpt2api-rs internal error: {err}");
1827 error_response(StatusCode::INTERNAL_SERVER_ERROR, "gpt2api-rs proxy failed".to_string())
1828}
1829
1830fn error_response(
1831 status: StatusCode,

Calls 1

error_responseFunction · 0.70

Tested by

no test coverage detected