The word 'mocked' is a overly harsh term here, I would say James gave you some much needed advice in a rather sarcastic manner.

But instead of typing all of that you could substitute the word 'mocked.' OK, I see your point.