Engaging in war makes one impossible to achieve anything

Not being able to achieve one's goal, in spite of resorting to war, shows that one has been engaged in a wrong war-trying to achieve something which, according to divine law, was impossible to achieve.