[ALOY-907] Properly report AST parsing error