updated error message to display the site for which there was an optimization error