Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuany committed Dec 5, 2024
1 parent 7301670 commit 6e7171f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions crates/check_syntax/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ pub fn check_syntax(
if builder.is_err() {
return Some(CheckSyntaxResponse {
path: path.display().to_string(),
errors: vec!["File is not a valid JavaScript file".to_owned()],
errors: vec![
"File is not a valid JavaScript file, Please check the file syntax"
.to_owned(),
],
});
}

Expand All @@ -29,7 +32,10 @@ pub fn check_syntax(
if semantic.is_err() {
return Some(CheckSyntaxResponse {
path: path.display().to_string(),
errors: vec!["File is not a valid JavaScript file".to_owned()],
errors: vec![
"File is not a valid JavaScript file, Please check the file syntax"
.to_owned(),
],
});
}

Expand Down
2 changes: 1 addition & 1 deletion crates/utils/src/semantic_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ impl SemanticBuilder {

Ok(
OxcSemanticBuilder::new()
.with_check_syntax_error(true)
.with_check_syntax_error(false)
.build(program),
)
}
Expand Down

0 comments on commit 6e7171f

Please sign in to comment.