monkey_wrench.error._common module

The module providing the decorator for pretty-printing of error messages.

monkey_wrench.error._common.__make_better_error_message(exception: Mapping[str, Any]) str[source]

Make a concise and a better-formatted error message.

Parameters:

exception – The given exception instance.

Returns:

A string containing the error message with an enhanced format.

monkey_wrench.error._common.pretty_error_logs(func: Callable[[...], ReturnType]) Callable[[...], ReturnType | None][source]

Decorator to catch and log prettier error messages when running in the task runner mode.