Added missing error log.