Skip to content

Commit

Permalink
fixed comment and added exception in error message for diagnostics pu…
Browse files Browse the repository at this point in the history
…rposes
  • Loading branch information
jurgenvinju committed Mar 7, 2024
1 parent 57c5851 commit 6e24aac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public PathConfig getDefaultPathConfig() {
@synopsis{for type-checking test modules in the rascal-core project; such as lang::rascalcore::check::Test1}
@description{
* sources have to be in `|project://rascal-core/src/org/rascalmpl/core/library|`
* binaries will be stored in-memory only
* binaries will be stored the target folder of the rascal-core project
* has the standard library and typepal on the library path, in case you accidentally want to test a module in rascal-core which depends on typepal.
}
public PathConfig getRascalCorePathConfig() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,8 @@ ModuleStatus doSaveModule(set[str] component, map[str,set[str]] m_imports, map[s
try {
writeBinaryValueFile(tplLoc, m1);
if(compilerConfig.logWrittenFiles) println("Written: <tplLoc>");
} catch _: {
throw "Corrupt TPL file <tplLoc>";
} catch value e: {
throw "Corrupt TPL file <tplLoc> because of <e>";
}

ms.tmodels[qualifiedModuleName] = m1;
Expand Down

0 comments on commit 6e24aac

Please sign in to comment.