missing file

This commit is contained in:
Dagur Valberg Johannsson 2025-02-14 20:43:51 +01:00
parent ebe63ce932
commit 219d0ff75d
No known key found for this signature in database
GPG key ID: FD701804AEE88107

5
src/rpc/err.rs Normal file
View file

@ -0,0 +1,5 @@
use rocket::{http::Status, response::status::Custom};
pub fn to_internal_error<E: std::fmt::Display>(e: E) -> Custom<String> {
Custom(Status::InternalServerError, format!("Error: {}", e))
}