bugId::98201 Fixed error for file protection, and fixed error message handling