kabu_evm_utils/
error_handler.rs

1use axum::http::StatusCode;
2
3/// Utility function for mapping any error into a `500 Internal Server Error`
4/// response.
5pub fn internal_error<E>(err: E) -> (StatusCode, String)
6where
7    E: std::error::Error,
8{
9    (StatusCode::INTERNAL_SERVER_ERROR, err.to_string())
10}