Do not publicly shame or humiliate your child as a form of punishment.
It's normal for kids to screw up, and it's embarrassing enough to be caught by your parents for doing something you're less than proud of without them broadcasting it to a bunch of other people. This can have devastating effects on a child's self esteem by engraining in them the idea that they are a "bad child." The child will internalize feelings of worthlessness and shame, especially knowing that others know about everything they've done wrong (and often don't hear about the things they've done right).
Please, respect your child enough to have an open and honest (and private) discussion with them when they mess up. This allows from them to learn from the experience and try to do better in the future.