8000 improve trusted publishing error message · rust-lang/crates.io@69433be · GitHub
[go: up one dir, main page]

Skip to content

Commit 69433be

Browse files
committed
improve trusted publishing error message
1 parent 22b19b5 commit 69433be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/controllers/krate/publish.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,9 @@ pub async fn publish(app: AppState, req: Parts, body: Body) -> AppResult<Json<Go
164164

165165
let auth = if let Some(trustpub_token) = trustpub_token {
166166
let Some(existing_crate) = &existing_crate else {
167-
let error = forbidden("Trusted Publishing tokens do not support creating new crates");
167+
let error = forbidden(
168+
"Trusted Publishing tokens do not support creating new crates. Publish the crate manually, first",
169+
);
168170
return Err(error);
169171
};
170172

0 commit comments

Comments
 (0)
0