no error when logging error

I've been hit by errors without codes. Thought this would be useful with people's debugging