In general, when anybody finds an error in a software engineer's product, that engineer should be thankful, not defensive. To err is human. To accept, divine! When an engineering error is found, the person causing it should broadcast it, not hide it. The broadcasting has two effects:
- It helps other engineers avoid the same error.
- It sets the stage for future non-defensive error repair.
- Ask a coworker to check your work. Someone who will give you time to contact the author and won't judge you if you are wrong.
- Give the author time to verify your report of an error.
- Discuss with the author how to best report the error so that the error gets fixed with as little drama as possible and so the right people are informed.
Reference:
Mizuno, Y., "Software Quality Improvement," IEEE Computer, March 1983.