If you've done nothing to deserve an attack of any kind, then don't let it bother you dude.
Easier said than done, I know, but ya gotta just make allowances for people if they're going through a rough patch. They'll look back when they're back to being themselves and appreciate how cool you were with them during their frustration. Believe me.
Chin up MM
