It is embarrassing that the British Empire couldn’t achieve a full victory against what was, at the time, a regional power. It is embarrassing that the US couldn’t fend off a sideshow invasion. It is embarrassing the whole thing couldn’t have been sorted out diplomatically.
Nothing was accomplished by the war but a bunch of buildings burning down and some tens of thousands dying. The deserters look pretty good in retrospect.
I've never studied history, and especially have never studied it abroad, but I think I've just always assumed that nations who've lost wars don't generally spend a lot of time educating their students about them.
I'm sure there are exceptions to this - World Wars 1 and 2 seem too big to go missing from literature, for example, and perhaps this is my naive, too-literal interpretation of "history is written by the victors," but I'd just always expect losses to either be minimized, or be taught exclusively to vilify a persistent enemy.