code: function showLoadingErrors() {
    const failedTasks = []
    const taskStatus = {}
  
    // Construct data for full report
    for (const data of scripts) {
      const messages = []
      // check sources
      const mSources = data.sources.filter(s => glob.sync(s).length === 0)
      if (mSources.length !== 0) {
        messages.push(
          `✘ Missing sources: ${(mSources.length > 1 ? '\n  ' : '') +
            mSources.map(s => `'${s}'`).join('\n  ')}`
        )
      }
      // display remaining errors
      for (const error of data.errors) {
        let msg = error.message || error.toString()
        const prefix = msg.startsWith('Error') ? '' : 'Error: '
        messages.push(`✘ ${prefix}${msg.replace(/\n/g, '\n  ')}`)
      }
      if (messages.length > 0) {
        failedTasks.push(data.name)
      } else {
        messages.push(`✔ No issues detected`)
      }
      taskStatus[data.name] = messages
    }
  
    if (failedTasks.length !== 0) {
      const messages = []
      for (const key of Object.keys(taskStatus)) {
        messages.push(
          `${key}:\n  ${taskStatus[key].join('\n').replace(/\n/g, '\n  ')}`
        )
      }
  
      showError(
        new Error(
          `${failedTasks.length > 1 ? 'Errors' : 'Error'} in ${failedTasks
            .map(s => `'${s}'`)
            .join(', ')}\n${messages.join('\n')}`
        )
      )
    }
  }
docs: Show errors which occurred when first loading a task's script.