mirror of
https://github.com/scratchfoundation/gh-pages.git
synced 2025-03-14 06:29:51 -04:00
Print correct error message when remote != 'origin'
This commit is contained in:
parent
c042fc444a
commit
1188782205
1 changed files with 2 additions and 2 deletions
|
@ -29,8 +29,8 @@ function getRemoteUrl(dir, remote) {
|
|||
})
|
||||
.fail(function(err) {
|
||||
return Q.reject(new Error(
|
||||
'Failed to get remote.origin.url (task must either be run in a ' +
|
||||
'git repository with a configured origin remote or must be ' +
|
||||
'Failed to get remote.' + remote + '.url (task must either be run in a ' +
|
||||
'git repository with a configured ' + remote + ' remote or must be ' +
|
||||
'configured with the "repo" option).'));
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue