Assembles an error message for a panic status.

  • Parameters

    • statusReason: string
    • metadata: Record<string, unknown>

    Returns FuelError

    The error message.