[builder] Fix parse error handling