In the book, Gandalf acted much as he always did in this meeting: Annoyingly Mysterious. You can’t really fault him, that’s his style. In the movie, it seemed like he was just being a jerk. I can’t fault him there either. If I came back from the dead as a nigh-invincible super-wizard, I’d probably run around doing this sort of thing to everyone.