How might yelling at a barking German Spitz be counterproductive?

Answer

The dog might interpret it as the owner joining in the alarm

Yelling at a barking dog can sometimes be counterproductive, as the dog might interpret the raised voice as the owner joining in the established alarm.

How might yelling at a barking German Spitz be counterproductive?
behaviorDogtraitGerman Spitz