Skip to content

Commit

Permalink
getModuleParseTree: did we really find a source file, otherwise fail
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Sep 20, 2024
1 parent 9c86bd7 commit 6aee41c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,9 @@ tuple[bool, Module, ModuleStatus] getModuleParseTree(str qualifiedModuleName, Mo
ms.parseTreeLIFO = [qualifiedModuleName, *ms.parseTreeLIFO];
mloc = |unknown:///<qualifiedModuleName>|;
try {
mloc = getModuleLocation(qualifiedModuleName, pcfg);
mloc = getModuleLocation(qualifiedModuleName, pcfg);
// Make sure we found a real source module (as opposed to a tpl module in a library
if(mloc.extension != "rsc") throw "";
} catch _: {
//ms.messages[qualifiedModuleName] ? [] = [error("Module <qualifiedModuleName> not found", mloc)];
//ms.status[qualifiedModuleName] += {not_found()};
Expand Down

0 comments on commit 6aee41c

Please sign in to comment.