If I were in that situation I would ask them if I could try to swipe again, if it didn't work, I'd deal with it and give them cash if I had it.
I mean what more did you want to express to them? Did you want to be rude and tell them to learn to do their job?
I'm really not seeing the problem here. I think you need to chill out honestly.