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 dcba480 commit 7aac118Copy full SHA for 7aac118
common/src/api.rs
@@ -215,8 +215,8 @@ impl Client {
215
.await?
216
.error_for_status()?
217
.json()
218
- .await?;
219
- Ok(())
+ .await
+ .map_err(Error::from)
220
}
221
222
pub async fn pop_queue(&self, query: &WorkQuery) -> Result<JobAssignment> {
@@ -237,8 +237,8 @@ impl Client {
237
238
239
240
241
242
243
244
pub async fn requeue_pkgs(&self, requeue: &RequeueQuery) -> Result<()> {
@@ -248,8 +248,8 @@ impl Client {
248
249
250
251
252
253
254
255
pub async fn ping_build(&self, body: &PingRequest) -> Result<()> {
0 commit comments