format_err_msg

pyrcs.utils.format_err_msg(e)[source]

Formats an error message from an exception.

Parameters:

e (Exception | None) – An instance of an exception or None.

Returns:

A formatted error message.

Return type:

str