docs: add comment clarifying translatability of TLS error messages

Error messages could be translated, but TLS alert names (e.g., certificate_required)
are from RFC 8446 spec and should remain in English for consistency.
This commit is contained in:
mkdev11
2026-01-06 06:13:00 +02:00
parent dc1e96f7d1
commit 56d51bcf82

View File

@@ -314,6 +314,8 @@ class TCPMonitorType extends MonitorType {
}
// Check if we got the expected alert
// Note: Error messages below could be translated, but alert names (e.g., certificate_required)
// are from RFC 8446 spec and should remain in English for consistency with the spec.
if (result.alertName === expectedTlsAlert) {
heartbeat.status = UP;
heartbeat.msg = `TLS alert received as expected: ${result.alertName} (${result.alertNumber})`;