First of all, I would like to congratulate the immigration officials who have performed their duty. It is the duty of the traveller to check proper documents before travelling abroad. This would have been not such an issue if the similar case would have occured in US.
But I would like the officials to take up the issue of giving transit permit to the french national. Law should be the same for all the persons be it Indian or Foreigner.