def METHOD_NAME(tmpdir: Path) -> None:
    cmd = [
        "examples/tutorials/structured_configs/1_minimal/my_app.py",
        "hydra.run.dir=" + str(tmpdir),
        "hydra.job.chdir=True",
        "port=foo",
    ]
    expected = dedent(
        """\
        Value 'foo'( of type 'str')? could not be converted to Integer
            full_key: port
            object_type=MySQLConfig"""
    )
    err = run_with_error(cmd)
    assert re.search(expected, err) is not None