Better approach at parsing failures