Added contextual info to error log.