Skip to content

Commit 9e307b1

Browse files
committed
Update "time out" to "timeout"
This read a little awkwardly to me. "time out" is a verb, but normally a noun follows "due to".
1 parent ec0e246 commit 9e307b1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cargo/ops/registry/publish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ pub fn publish(ws: &Workspace<'_>, opts: &PublishOpts<'_>) -> CargoResult<()> {
329329
break;
330330
} else {
331331
let failed_list = package_list(plan.iter(), "and");
332-
bail!("unable to publish {failed_list} due to time out while waiting for published dependencies to be available.");
332+
bail!("unable to publish {failed_list} due to a timeout while waiting for published dependencies to be available.");
333333
}
334334
}
335335
for id in &confirmed {

tests/testsuite/publish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3391,7 +3391,7 @@ See https://doc.rust-lang.org/cargo/reference/manifest.html#package-metadata for
33913391
2 remaining crates to be published
33923392
[WARNING] timed out waiting for dep v0.0.1 to be available in registry `crates-io`
33933393
[NOTE] the registry may have a backlog that is delaying making the crate available. The crate should be available soon.
3394-
[ERROR] unable to publish main v0.0.1 and other v0.0.1 due to time out while waiting for published dependencies to be available.
3394+
[ERROR] unable to publish main v0.0.1 and other v0.0.1 due to a timeout while waiting for published dependencies to be available.
33953395
33963396
"#]])
33973397
.run();

0 commit comments

Comments
 (0)