def formatErrorMsg(funcname, exc):
    """Formatter for error messages.

    Args:
        funcname: str the function name where the error occurred
        exc: Exception

    Returns:
        str:
    """
    ename = type(exc).__name__
    return f'Error in {funcname}: {ename}: {exc}\n'
