1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 15:49:44 -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 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"),