Skip to content

Commit d2078b0

Browse files
author
Marco Napetti
committed
Better error message
1 parent f5b14b8 commit d2078b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/publish_rate_limit.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl PublishRateLimit {
127127
.unwrap_or_default();
128128
if today >= daily_limit {
129129
return Err(cargo_err(
130-
"You have published too many crates in the last 24 hours",
130+
"You have published too many versions of this crate in the last 24 hours",
131131
));
132132
}
133133
}

src/tests/version.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,6 @@ fn daily_limit() {
194194
let json = response.into_json();
195195
assert_eq!(
196196
json["errors"][0]["detail"],
197-
"You have published too many crates in the last 24 hours"
197+
"You have published too many versions of this crate in the last 24 hours"
198198
);
199199
}

0 commit comments

Comments
 (0)