showing properly error message on checking file structure