mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-06 22:33:34 -04:00
* feedback popover with new api * allow unauthed feedback * add login information * allow no auth * fix hooks * remove emoji on reset * show cancel on left of login button
7 lines
211 B
Rust
7 lines
211 B
Rust
use reqwest::Response;
|
|
|
|
pub fn ensure_response(resp: Response) -> Result<Response, rspc::Error> {
|
|
resp.error_for_status()
|
|
.map_err(|e| rspc::Error::new(rspc::ErrorCode::InternalServerError, e.to_string()))
|
|
}
|