add error msg function.
update file not found msg.