Skip to content

Commit b12dfec

Browse files
committed
👌 Take care of review
1 parent 9a15406 commit b12dfec

File tree

1 file changed

+3
-2
lines changed
  • packages/gitmoji-changelog-core/src

1 file changed

+3
-2
lines changed

packages/gitmoji-changelog-core/src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function sanitizeVersion(version) {
4141
if (e.name === 'TypeError') {
4242
throw FunctionalError(e.message)
4343
}
44-
return null
44+
throw e
4545
}
4646
}
4747

@@ -98,7 +98,7 @@ function hasNextVersion(tags, release) {
9898
if (e.name === 'TypeError') {
9999
throw FunctionalError(e.message)
100100
}
101-
return null
101+
throw e
102102
}
103103
}
104104

@@ -146,6 +146,7 @@ async function generateChangelog(from, to, {
146146
if (e.name === 'TypeError') {
147147
throw FunctionalError(e.message)
148148
}
149+
throw e
149150
}
150151
}
151152

0 commit comments

Comments
 (0)