That doesn't sound like bad DMing to me. As the others have said, the players acted foolishly. You did not create a situation that was intended to bring about their deaths, they chose to seek out their own fortune or folly and ended up paying the price. Actually, the way you handled the orcs...