Skip to content

Commit 4d93f2d

Browse files
committed
Don't display the timeout error if the API returned errors
#6936 (comment)
1 parent 6af6789 commit 4d93f2d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/crates-io/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ impl Registry {
343343

344344
match (self.handle.response_code()?, errors) {
345345
(0, None) | (200, None) => {},
346-
(503, _) if started.elapsed().as_secs() >= 29 && self.host_is_crates_io() => {
346+
(503, None) if started.elapsed().as_secs() >= 29 && self.host_is_crates_io() => {
347347
bail!("Request timed out after 30 seconds. If you're trying to \
348348
upload a crate it may be too large. If the crate is under \
349349
10MB in size, you can email help@crates.io for assistance.")

0 commit comments

Comments
 (0)