From f5e9680b752db4c4a4709346050a2bde10e2b84e Mon Sep 17 00:00:00 2001 From: Gabriel Holodak Date: Mon, 27 Jan 2025 19:03:15 -0500 Subject: [PATCH] fix(cli): propagate error flag in parse summary --- cli/src/parse.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/parse.rs b/cli/src/parse.rs index c4982bc2..c5302c85 100644 --- a/cli/src/parse.rs +++ b/cli/src/parse.rs @@ -719,7 +719,7 @@ pub fn parse_file_at_path( opts.stats.parse_summaries.push(ParseSummary { file: path.to_path_buf(), - successful: true, + successful: first_error.is_none(), start: Some(tree.root_node().start_position().into()), end: Some(tree.root_node().end_position().into()), duration: Some(parse_duration),