Fix error message in migrate-hosts

fixes #7528