in order that harmony should be restored , it was necessary , not only that the transgressor should be made to see the error of his ways , but also that society in general should be left in no doubt that transgression was not a profitable or viable option .