From 9eb25e3cff22d1f704ede0d4066abc846a26a919 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 4 Dec 2023 15:19:01 +0100 Subject: [PATCH] fix: error code used for duplicate version publish (#21457) --- cli/tools/registry/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/tools/registry/mod.rs b/cli/tools/registry/mod.rs index a86e15dd63..410025b2a7 100644 --- a/cli/tools/registry/mod.rs +++ b/cli/tools/registry/mod.rs @@ -391,7 +391,7 @@ async fn perform_publish( let res = parse_response::(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"),