add context to error logging.