When we teach them while we're angry, they mostly learn that something is wrong with them, and they respond to our anger out of fear. They do what we want only to avoid our displeasure. That is not a pleasant way to live. They may learn to be responsible, but they will not learn to be happy, and that is a far more important goal. You might temporarily get your child back to bed with that approach, but you will cause terrible damage that will far outweigh any good you do.
Most parents have a chronic problem with anger.
For them I suggest reading The Truth About Relationships . We react with anger toward other people only because we don't feel unconditionally loved ourselves. We must learn to feel loved before we can have a hope of loving our children. It would better be far better for your child to stay up all night long than for you to speak to him in anger. Anger is unspeakably damaging to our children.