Skip to content

Commit

Permalink
fix: typos in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Oct 3, 2018
1 parent cb85170 commit 1d3c87f
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions lib/definitions/errors.js
Expand Up @@ -12,47 +12,41 @@ module.exports = {
message: 'Invalid `assets` option.',
details: `The [assets option](${linkify(
'README.md#assets'
)}) option must be an \`Array\` of \`Strings\` or \`Objects\` with a \`path\` property.
)}) must be an \`Array\` of \`Strings\` or \`Objects\` with a \`path\` property.
Your configuration for the \`assets\` option is \`${stringify(assets)}\`.`,
}),
EINVALIDSUCCESSCOMMENT: ({successComment}) => ({
message: 'Invalid `successComment` option.',
details: `The [successComment option](${linkify(
'README.md#successcomment'
)}) option, if defined, must be a non empty \`String\`.
)}) if defined, must be a non empty \`String\`.
Your configuration for the \`successComment\` option is \`${stringify(successComment)}\`.`,
}),
EINVALIDFAILTITLE: ({failTitle}) => ({
message: 'Invalid `failTitle` option.',
details: `The [failTitle option](${linkify(
'README.md#failtitle'
)}) option, if defined, must be a non empty \`String\`.
details: `The [failTitle option](${linkify('README.md#failtitle')}) if defined, must be a non empty \`String\`.
Your configuration for the \`failTitle\` option is \`${stringify(failTitle)}\`.`,
}),
EINVALIDFAILCOMMENT: ({failComment}) => ({
message: 'Invalid `failComment` option.',
details: `The [failComment option](${linkify(
'README.md#failcomment'
)}) option, if defined, must be a non empty \`String\`.
details: `The [failComment option](${linkify('README.md#failcomment')}) if defined, must be a non empty \`String\`.
Your configuration for the \`failComment\` option is \`${stringify(failComment)}\`.`,
}),
EINVALIDLABELS: ({labels}) => ({
message: 'Invalid `labels` option.',
details: `The [labels option](${linkify(
'README.md#options'
)}) option, if defined, must be an \`Array\` of non empty \`String\`.
)}) if defined, must be an \`Array\` of non empty \`String\`.
Your configuration for the \`labels\` option is \`${stringify(labels)}\`.`,
}),
EINVALIDASSIGNEES: ({assignees}) => ({
message: 'Invalid `assignees` option.',
details: `The [assignees option](${linkify(
'README.md#options'
)}) option must be an \`Array\` of non empty \`Strings\`.
details: `The [assignees option](${linkify('README.md#options')}) must be an \`Array\` of non empty \`Strings\`.
Your configuration for the \`assignees\` option is \`${stringify(assignees)}\`.`,
}),
Expand All @@ -66,7 +60,7 @@ By default the \`repositoryUrl\` option is retrieved from the \`repository\` pro
message: 'Invalid `proxy` option.',
details: `The [proxy option](${linkify(
'README.md#proxy'
)}) option must be a \`String\` or an \`Objects\` with a \`host\` and a \`port\` property.
)}) must be a \`String\` or an \`Objects\` with a \`host\` and a \`port\` property.
Your configuration for the \`proxy\` option is \`${stringify(proxy)}\`.`,
}),
Expand Down

0 comments on commit 1d3c87f

Please sign in to comment.