       catch err
         @printErrorAndReturnFailure(file, refFile)
 
-  checkSameDirMarkdowns: (files, curPath, fullPath) ->
+  checkSameDirMarkdowns: (files, curPath, refFile) ->
     _.each files, (file) =>
       try
         fd = fs.openSync path.join(curPath, file), 'r'
         fs.closeSync(fd)
       catch err
-        @printErrorAndReturnFailure(file, fullPath)
+        @printErrorAndReturnFailure(file, refFile)
 
   checkOtherDirMarkdowns: (files, curPath, refFile) ->
     _.each files, (file) =>

# Modules
#

fs         = require('graceful-fs')
path       = require('path')
marked     = require('marked')
_          = require('underscore')

  projectDir: path.join(__dirname, '..', '..')

  parse: (file, failed) ->
    App.failures = []
    console.log "Parsing files referenced in #{file.name}...\n\n\n"
    @currentPath = file.fullParentDir

    output = fs.readFileSync file.fullPath, 'utf-8'
