add error message in case of unknow extension