Skip to content

Commit

Permalink
fix: error code used for duplicate version publish (denoland#21457)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato authored Dec 4, 2023
1 parent 7d5ddc4 commit 9eb25e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/tools/registry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ async fn perform_publish(
let res = parse_response::<PublishingTask>(response).await;
let mut task = match res {
Ok(task) => task,
Err(err) if err.code == "versionAlreadyExists" => {
Err(err) if err.code == "duplicateVersionPublish" => {
println!(
"{} @{}/{}@{}",
colors::yellow("Skipping, already published"),
Expand Down

0 comments on commit 9eb25e3

Please sign in to comment.