give a more informative message when parsing fails