               else ///\${var.koding_#{type}_#{field}}///g
             template = template.replace search, content
           else
-            errors.push "Variable `#{field}` not found in `#{type}` data."
+            errors[type] ?= []
+            errors[type].push field
 
       @createPreviewModal { errors, warnings, template }
 


  createReportFor = (data, type) ->

    if data.length > 0
      console.warn "#{type.capitalize()} for preview requirements: ", data

      issueList = ''
      for issue in data
        issueList += " - #{issue}\n"

      issues = "> Following #{type} found while generating
                preview for this template: \n#{issueList}"
    else
      issues = ''


    availableData = { group, account, custom }

    requiredData  = requirementsParser template
    errors        = {}
    warnings      = {}

    fetchUserData = (callback) ->

