Include node type in exception