Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit fced615

Browse files
author
Hendrik van Antwerpen
committed
Panic when invariant is violated
1 parent 8ae0463 commit fced615

File tree

1 file changed

+1
-1
lines changed
  • tree-sitter-stack-graphs/src/cli

1 file changed

+1
-1
lines changed

tree-sitter-stack-graphs/src/cli/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ impl<'a> Indexer<'a> {
362362
.and_then(|file_name| lc.special_files.get(&file_name.to_string_lossy()))
363363
{
364364
Some(fa) => fa,
365-
None => continue, // shouldn't really happen though
365+
None => panic!("secondary language missing analyzer"),
366366
};
367367
fa.build_stack_graph_into(
368368
graph,

0 commit comments

Comments
 (0)