@semo/core
    Preparing search index...

    Function fatal

    • Logs an error message and immediately exits the process. Use this instead of error() + return when you want to halt execution.

      Parameters

      • message: unknown = ''

        The error message to log before exiting

      • exitCode: number = 1

        The process exit code (default: 1)

      Returns never