dns_sd: qualify IIO_ERROR message before it prints out
dns_sd: qualify IIO_ERROR message before it prints out

After a loop finishes (normally by a 'break;') only print out
the IIO_ERROR message if there was an error (was no 'break;').

This resolves some random message printing out:
ERROR: dnssd_remove_node call when 1 exceeds list length (1)
when doing dns-sd (iio_info -s).

Signed-off-by: Robin Getz <c66e5a86ef9317cf35cecb2ed063996b2100ed4b@analog.com>

analogdevicesinc/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio