diff --git a/lib/searchFile.js b/lib/searchFile.js
index <HASH>..<HASH> 100644
--- a/lib/searchFile.js
+++ b/lib/searchFile.js
@@ -20,6 +20,9 @@ function searchFile(name, dirList, callback) {
   }
 
   var success = dirList.some(function(dir) {
+    if (!dir) {
+      return false;
+    }
     try {
       /**
        * Don't try to optimise this to be async since any failures will be
@@ -36,7 +39,7 @@ function searchFile(name, dirList, callback) {
   });
 
   if (!success) {
-    return callback('Failed to find file \'' + name + '\' at specified locations');
+    return callback('Failed to find file \'' + name + '\' at specified locations:' + dirList.join(','));
   }
 }
#searchFile() now checks for a directory list