Print correct error message when remote != 'origin'

This commit is contained in:
Marco Castelluccio 2015-10-14 03:04:28 +02:00 committed by Tim Schaub
parent c042fc444a
commit 1188782205

View file

@ -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).'));
});
}