yes you should be given tochacha for driving on shabbos, but that doesn’t give halachik permission for people to tell eachother as in what happened in the op story. If you really cared the person you would go over to THE PERSON DOING THE VIOLATION and give them tochacha in the right manner. That being said what happened there was a 100 percent wrong.She never had to say it to the friend more like what was she doing saying it to the friend