aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/fetchGitData.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/fetchGitData.js b/lib/fetchGitData.js
index a5a8eb8..d79a3db 100644
--- a/lib/fetchGitData.js
+++ b/lib/fetchGitData.js
@@ -1,4 +1,5 @@
var exec = require("exec-sync");
+var logger = require('./logger')();
var fetchGitData = function(git) {
@@ -28,11 +29,9 @@ var fetchGitData = function(git) {
};
var remotes = {};
- //-- Throw an error if no data is passed
+ //-- Malformed/undefined git object
if ('undefined' === typeof git) {
throw new Error('No options passed');
-
- //-- Throw an error if no head or head.id is provided
} else if (!git.hasOwnProperty('head')) {
throw new Error('You must provide the head');
} else if (!git.head.hasOwnProperty('id')) {