def error_message(e):
    """
    Returns a custom error message

    :param e: error raised
    :type e: PermissionError|OSError
    :return: custom error message
    :rtype: str
    """
    errno, strerror = e.args
    return f"Error: [Errno {errno}] {strerror}"