error handling if file is not exist.