We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22a1783 commit 3eeb856Copy full SHA for 3eeb856
src/endpoint.rs
@@ -37,6 +37,11 @@ pub(crate) async fn get_outstanding_namereqs(globals: &Globals) -> Result<Vec<Na
37
.send()
38
.await?;
39
40
+ let status_code = resp.status();
41
+ if !status_code.is_success() {
42
+ return Err(format!("OFAPI error: {} {}", endpoint, status_code).into());
43
+ }
44
+
45
let body = resp.json().await?;
46
Ok(body)
47
}
0 commit comments