rename errorString to errorcode.