That’s how to make a career. If you never make any mistakes, you’re invisible. Don’t do it too often though, or you’ll eventually get promoted to management.
If it didn’t happen, management may ask what is your value.
Unfortunately, most people who break things while they make changes will swear up and down that their change didn’t break anything.
I find it worse when they swear that they didn’t do anything at all. The changes just happened spontaneously.
Those people are almost as bad as the junior devs that are very confidently incorrect.
Note that this also applies to politicians.
Oof that’s me 💀
It really depends on the situation. There are times, where it’s better to let it play out exactly like this.
99% of the time though, it’s best practice for me to announce my error, before anyone affected knows what hit them.