From 11887822055adb36bda6f6073ee606897037ebdd Mon Sep 17 00:00:00 2001 From: Marco Castelluccio <mar.castelluccio@studenti.unina.it> Date: Wed, 14 Oct 2015 03:04:28 +0200 Subject: [PATCH] Print correct error message when remote != 'origin' --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 46a35d4..d6a0a00 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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).')); }); }