Legal Error, Litigation, and the Incentive to Obey the Law