def print_invalid_config_message()

in wadebug/ui.py [0:0]


def print_invalid_config_message(config_file_path, ex):
    """Message to print when invalid yaml file is provided as config."""
    click.secho(
        "\nConfig file at {config_file_path} is invalid.".format(
            config_file_path=os.path.join(os.getcwd(), config_file_path)
        ),
        fg="red",
    )
    click.secho(
        "Make sure file contains valid yaml or rename it and wadebug will "
        "create a new empty config file. Execute command below to make a backup:\n"
    )
    click.secho(
        "\tmv {config_file_path} {config_file_path}.bak\n".format(
            config_file_path=config_file_path
        ),
        bold=True,
    )
    click.secho("Exception found:", bold=True)
    click.secho("{parsing_ex}\n".format(parsing_ex=ex))