[The boss] said, ‘I’m not worried that you broke something, that's expected, the most important thing is how you deal with it’,
And that is how a boss should react. Shouting at people for making mistakes doesn't mean fewer mistakes are made. It just means more are covered up.
Admit the mistake and learn from it. I know it sounds like management bull****, but mistakes are fantastic learning experiences. Just don't learn by mistakes too often...