Tls module

error_text

procedureextensionexperimentalSource

One line for logs and messages: "certificate verification failed: the certificate has expired". Like detail, the text is in temporary storage, never inside the error.

Example↗
line := error_text(Tls_Error.{ kind = .CLOSED });
assert(line.count > 0);
error_text :: (error: Tls_Error) -> string

One line for logs and messages: "certificate verification failed: the certificate has expired". Like detail, the text is in temporary storage, never inside the error.

Parameters

error: Tls_Error
the error to describe.

Returns

string
Example↗
line := error_text(Tls_Error.{ kind = .CLOSED });
assert(line.count > 0);

See also