def verify_build(build):
    """Verify the build section of the configuration file."""
    if not isinstance(build, dict):
        yield 'The "build" section has to be a dictionary.'
        return
    if 'image' not in build:
        yield '"image" is required in the build section.'
    if 'script' not in build:
        yield '"script" is required in the build section.'
