Skip to content

Commit

Permalink
chore: forgot one error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ovflowd committed Oct 13, 2023
1 parent 2f51e53 commit 309a47f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/release-post/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down Expand Up @@ -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 = () =>
Expand Down

0 comments on commit 309a47f

Please sign in to comment.