Skip to content

Commit

Permalink
Transform exception of getModuleName into error message
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulKlint committed Nov 25, 2024
1 parent 3be5d85 commit 5841965
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/org/rascalmpl/core/library/lang/rascalcore/check/Checker.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,17 @@ ModuleStatus rascalTModelForLocs(
}

for (mloc <- mlocs) {
m = getModuleName(mloc, pcfg);
if(isModuleLocationInLibs(m, mloc, pcfg)){
ms.status[m] ? {} += {rsc_not_found()};
try {
m = getModuleName(mloc, pcfg);
if(isModuleLocationInLibs(m, mloc, pcfg)){
ms.status[m] ? {} += {rsc_not_found()};
}
topModuleNames += {m};
ms.moduleLocs[m] = mloc;
msgs += toList(ms.messages[m] ? {});
} catch e:{
msgs += error(e, mloc);
}
topModuleNames += {m};
ms.moduleLocs[m] = mloc;
msgs += toList(ms.messages[m] ? {});
}

str jobName = "";
Expand Down

0 comments on commit 5841965

Please sign in to comment.