Rabat - Morocco had warned France about Yassin Salhi, the man accused of beheading his boss at a French gas factory at Saint-Quentin-Fallavier near Lyon last week.