1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

fix: error code used for duplicate version publish (#21457)

This commit is contained in:
Luca Casonato 2023-12-04 15:19:01 +01:00 committed by GitHub
parent 7d5ddc462c
commit 9eb25e3cff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -391,7 +391,7 @@ async fn perform_publish(
let res = parse_response::<PublishingTask>(response).await; let res = parse_response::<PublishingTask>(response).await;
let mut task = match res { let mut task = match res {
Ok(task) => task, Ok(task) => task,
Err(err) if err.code == "versionAlreadyExists" => { Err(err) if err.code == "duplicateVersionPublish" => {
println!( println!(
"{} @{}/{}@{}", "{} @{}/{}@{}",
colors::yellow("Skipping, already published"), colors::yellow("Skipping, already published"),