Skip to content

Commit

Permalink
Bug in vesselData directory detection
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanSanchez committed Dec 6, 2014
1 parent 4956649 commit d14fa84
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vesselData.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ function lookForVesselDataFile(dir) {
if (vesselDataFileFound) {
return false;
}
if (dir === undefined) {
return false;
}
console.log('Looking for vesselData.xml file in', dir);
if (fs.existsSync(path.resolve(dir,config.datDir,'vesselData.xml'))) {
console.log('Found a vesselData.xml file!');
Expand Down

0 comments on commit d14fa84

Please sign in to comment.