Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuany committed Oct 10, 2024
1 parent 35d0ebf commit c4ebb03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion crates/utils/src/semantic_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ impl SemanticBuilder {
for err in ret.errors.iter() {
eprintln!("parse error: {:?}", err);
}
panic!("parse error: {:?}", ret.errors);
panic!(
"parse error: {:?} {}",
ret.errors,
self.file_path.as_ref().unwrap().to_string_lossy()
);
}

let program = self.allocator.alloc(ret.program);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shined/source-code-diagnosis",
"version": "0.0.39",
"version": "0.0.40",
"main": "index.js",
"types": "index.d.ts",
"napi": {
Expand Down

0 comments on commit c4ebb03

Please sign in to comment.