From 20c78b55d530fbb494d92ef47dd5a62dd358180c Mon Sep 17 00:00:00 2001 From: Wade Anderson Date: Tue, 1 Mar 2016 14:56:05 +0100 Subject: [PATCH] Prompt the user to up the version number. This can be confusing to the user and they might not realize they can up the version number. --- src/publish.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/publish.ts b/src/publish.ts index c95265f..ce18261 100644 --- a/src/publish.ts +++ b/src/publish.ts @@ -65,7 +65,7 @@ function _publish(packagePath: string, pat: string, manifest: Manifest): Promise .catch(err => err.statusCode === 404 ? null : Promise.reject(err)) .then(extension => { if (extension && extension.versions.some(v => v.version === manifest.version)) { - return Promise.reject(`${ fullName } already exists.`); + return Promise.reject(`${ fullName } already exists. Version number cannot be the same.`); } var promise = extension