It cost more than half a million lives to end slavery at that particular time.
What is the appropriate life per slavery-year exchange rate? Because if for one less year of slavery you would spend 10,000 human lives, and 20 years of peaceful compromise would have ended slavery, then your war was a mistake.