Added more of an error message and log, rather than just log.