Skip to content
This repository has been archived by the owner on Jan 14, 2018. It is now read-only.

Commit

Permalink
fix: typo in EINVALIDGITURL error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Dec 15, 2017
1 parent 939d203 commit be5b5e5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ module.exports = async function(pluginConfig, {options: {branch, repositoryUrl}}

const {name: repo, owner} = parseGithubUrl(repositoryUrl);
if (!owner || !repo) {
throw new SemanticReleaseError('The git repository URL ${} is not a valid Github URL.', 'EINVALIDGITURL');
throw new SemanticReleaseError(
`The git repository URL ${repositoryUrl} is not a valid Github URL.`,
'EINVALIDGITURL'
);
}

let {port, protocol, hostname: host} = githubUrl ? parse(githubUrl) : {};
Expand Down

0 comments on commit be5b5e5

Please sign in to comment.