From 309a47ffb1fb5d149ca4155423045204b3e22667 Mon Sep 17 00:00:00 2001 From: Claudio Wunder Date: Sat, 14 Oct 2023 01:38:18 +0200 Subject: [PATCH] chore: forgot one error message --- scripts/release-post/index.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/release-post/index.mjs b/scripts/release-post/index.mjs index 5aca539eb1dcb..2b6fb831e8edd 100644 --- a/scripts/release-post/index.mjs +++ b/scripts/release-post/index.mjs @@ -39,6 +39,7 @@ const URLS = { }; const ERRORS = { + NO_VERSION_PROVIDED: new Error('No version provided'), RELEASE_EXISTS: version => new Error(`Release post for ${version} already exists!`), NO_AUTHOR_FOUND: version => @@ -78,7 +79,7 @@ const explicitVersion = version => new Promise((resolve, reject) => version && version.length > 0 ? resolve(version) - : reject('No version provided') + : reject(ERRORS.NO_VERSION_PROVIDED) ); const findLatestVersion = () =>