Regretting dream meaning

Dreaming we regret a failure means that we are about to commit it in real life.