Skip to content

Commit 070d3f5

Browse files
committed
improve trusted publishing error message
1 parent 22b19b5 commit 070d3f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controllers/krate/publish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ 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("Trusted Publishing tokens do not support creating new crates. Publish the crate manually, first");
168168
return Err(error);
169169
};
170170

0 commit comments

Comments
 (0)