displaying error msg when file not found