add some log for error msg.