Jesus strongly disapproved of James and John"s attitude, and He rebuked them (Gr. epetimesen, cf. Luke 4:35; Luke 4:41; Luke 8:24). Jesus" mission did not call for Him to bring judgment yet. The group, therefore, proceeded to another presumably Samaritan village where they found lodging. [source][source][source]
The point of the story is Jesus" toleration of rejection without retaliation (cf. Luke 6:36). His attitude contrasts with the disciples" attitude, which did not grow out of righteous indignation, because the Samaritans were rejecting the Messiah, but out of racial prejudice. [source][source][source]