The broad view understanding is that the French brought in some Nazi fellows to torture the Moslems. Which worked and collapsed the revolt. But word got out and world opinion flared up against France and they had to walk away from the whole thing in shame. Win the battle, lose the war.
Done in Convention by the Unanimous Consent of the States present the Seventeenth Day of September in the Year of our Lord one thousand seven hundred and Eighty seven.