add errormessage to parsing file