The Spies - What Did They Do Wrong?

In Numbers 13 Moses sent twelve men to look at the Promised Land and report back. Two of those men brought a good report and urged the nation to rise up and begin the invasion. Ten, however, did not believe it was possible for Israel to prevail and they spread panic among the people. Why did they bring a bad report? Why did God punish the entire nation for their failure?.