m/cup
1
0
mirror of https://github.com/sergi0g/cup.git synced 2025-11-17 09:33:38 -05:00

fix: errors in http.rs

This commit is contained in:
Sergio
2025-05-10 20:55:14 +03:00
committed by GitHub
parent 15784eb4f1
commit 3e42ac338a

View File

@@ -68,11 +68,11 @@ impl Client {
let message = format!("{} {}: Unauthorized! Please configure authentication for this registry or if you have already done so, please make sure it is correct.", method, url);
self.ctx.logger.warn(&message);
Err(message)
}
} else if status == 502 {
let message = format!("{} {}: The registry is currently unavailabile (returned status code 502).", method, url);
self.ctx.logger.warn(&message);
Err(message)
}
} else if status.as_u16() <= 400 {
Ok(response)
} else {