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 = () =>