Skip to content

Commit

Permalink
Improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Dec 19, 2018
1 parent ae8e2f0 commit 0aed5bd
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/errors.js
Expand Up @@ -27,7 +27,11 @@ class FileNotFoundError extends ReleaseItError {

class DistRepoStageDirError extends ReleaseItError {
constructor(stageDir) {
super(`The \`dist.stageDir\` ("${stageDir}") must resolve to a sub directory of current working directory.`);
super(
`The \`dist.stageDir\` ("${stageDir}") must resolve to a sub directory of current working directory.` +
EOL +
'Documentation: https://github.com/webpro/release-it#distribution-repository'
);
}
}

Expand Down Expand Up @@ -77,7 +81,11 @@ class GitUpstreamError extends ReleaseItError {

class GithubTokenError extends ReleaseItError {
constructor(tokenRef) {
super(`Environment variable "${tokenRef}" is required for GitHub releases.`);
super(
`Environment variable "${tokenRef}" is required for GitHub releases.` +
EOL +
'Documentation: https://github.com/webpro/release-it#github-releases'
);
}
}

Expand Down

0 comments on commit 0aed5bd

Please sign in to comment.