added better error description on corpus.parse failure.