return error message when parsing failed