Skip to content

Commit

Permalink
fix: err not containing string array but string
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin committed Apr 15, 2020
1 parent 00ae2e6 commit 4d5a972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/option.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export const validateOptions = (inputOptions: InputOptions) => {
if (inputOptions.preset) {
if (typeof inputOptions.preset === 'string') {
if (!optionPresets[inputOptions.preset]) {
return err(`Option preset ${inputOptions.preset} does not exist.`)
return err([`Option preset ${inputOptions.preset} does not exist.`])
}

preset = optionPresets[inputOptions.preset as string]
Expand Down

0 comments on commit 4d5a972

Please sign in to comment.