Skip to content

Commit

Permalink
fix: better error message for invalid branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Realtin committed Jun 21, 2017
1 parent f62f2f3 commit 05427d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion update.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = function update () {
}

if (!info.branchName.startsWith(config.branchPrefix)) {
return console.error('Not a Greenkeeper branch')
return console.error(`'${info.branchName}' is not a Greenkeeper branch`)
}

if (!info.firstPush) {
Expand Down
2 changes: 1 addition & 1 deletion upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module.exports = function upload () {
}

if (!info.branchName.startsWith(config.branchPrefix)) {
return console.error('Not a Greenkeeper branch')
return console.error(`'${info.branchName}' is not a Greenkeeper branch`)
}

const isInitial = info.branchName === (config.branchPrefix + 'initial') ||
Expand Down

0 comments on commit 05427d7

Please sign in to comment.