missing file
This commit is contained in:
parent
ebe63ce932
commit
219d0ff75d
1 changed files with 5 additions and 0 deletions
5
src/rpc/err.rs
Normal file
5
src/rpc/err.rs
Normal 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))
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue