Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/gitmoji-changelog-core/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function sanitizeVersion(version) {
})
} catch (e) {
if (e.name === 'TypeError') {
throw FunctionalError(e.message)
throw new FunctionalError(e.message)
}
throw e
}
Expand Down Expand Up @@ -96,7 +96,7 @@ function hasNextVersion(tags, release) {
return tags.some(tag => semver.eq(tag, release))
} catch (e) {
if (e.name === 'TypeError') {
throw FunctionalError(e.message)
throw new FunctionalError(e.message)
}
throw e
}
Expand Down Expand Up @@ -144,7 +144,7 @@ async function generateChangelog(from, to, {
}
} catch (e) {
if (e.name === 'TypeError') {
throw FunctionalError(e.message)
throw new FunctionalError(e.message)
}
throw e
}
Expand Down