Polyman Documentation - v2.2.2
    Preparing search index...

    Function logErrorAndExit

    • Logs an error and exits the process with code 1.

      Parameters

      • error: unknown

        Error to log

      Returns void

      if (!fs.existsSync('Config.json')) {
      logErrorAndExit(new Error('Config.json not found'));
      }