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) {
|
.fail(function(err) {
|
||||||
return Q.reject(new Error(
|
return Q.reject(new Error(
|
||||||
'Failed to get remote.origin.url (task must either be run in a ' +
|
'Failed to get remote.' + remote + '.url (task must either be run in a ' +
|
||||||
'git repository with a configured origin remote or must be ' +
|
'git repository with a configured ' + remote + ' remote or must be ' +
|
||||||
'configured with the "repo" option).'));
|
'configured with the "repo" option).'));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue