           p.then (currentContents) =>
             if @force || currentContents != code
               filesWritten++
-              @log "writing: #{name.yellow}"
+              @log "writing: #{@getLogFileString(name).yellow}"
               fsp.writeFile name, code
           , (error) =>
-            @log "error reading #{name}".red, error
+            @log "error reading #{@getLogFileString(name)}".red, error
 
     Promise.all promises
     .then =>


  generateHelper: ({name, code}) ->
    if @pretend
      @log "\ngenerated: #{name.yellow}"
      @log indent code.green
    @generatedFiles[name] = code

  getRelativePath: (path = @root) ->
    getRelativePath @rootPrefix, path

  writeFiles: ->
    filesWritten = 0

      do (name, code) =>
        filesTotal++
        if @lastGenerator?.generatedFiles[name] == code
          @log "no change: #{@getLogFileString(name)}".grey if @verbose
        else
          p = if fsp.existsSync name
            fsp.readFile name, 'utf8'
