Skip to content

Commit

Permalink
Merge pull request #16 from tilman/patch-1
Browse files Browse the repository at this point in the history
Fix errors in config validation
  • Loading branch information
sargreal authored Sep 19, 2022
2 parents 3d46a84 + 2fbd052 commit 0808e55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ module.exports = {
throw new Error('freeApi has to be a boolean')
}
if (typeof translateRelations !== 'boolean') {
throw new Error('freeApi has to be a boolean')
throw new Error('translateRelations has to be a boolean')
}
if (glossaryId !== null && typeof freeApi !== 'string') {
if (glossaryId !== null && typeof glossaryId !== 'string') {
throw new Error('glossaryId should be a string if it is defined')
}
},
Expand Down

0 comments on commit 0808e55

Please sign in to comment.