Skip to content

Commit

Permalink
Friendlier output if given a non github.com repo
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrit committed Jul 30, 2018
1 parent 75685f2 commit 14b8c8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/skpm/src/commands/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export default asyncCommand({
(argv.repoUrl && extractRepository(argv.repoUrl)) || skpmConfig.repository

if (!repo) {
throw new Error('Missing "repository" field in the package.json.')
throw new Error(
'Please supply github.com repo URL as --repo-url or in "repository" field in the package.json.'
)
}

if (!argv.skipRegistry && !skpmConfig.description) {
Expand Down

0 comments on commit 14b8c8a

Please sign in to comment.