Nice that you were a person he felt ok with sharing the mistake with, I suppose that's an important part of being head of eng.
There are ways around it, of course, but it prevents the scenario described above.