From 6e24aac46d532b0a2f84e40a7bac59a984837efc Mon Sep 17 00:00:00 2001 From: "Jurgen J. Vinju" Date: Thu, 7 Mar 2024 10:24:54 +0100 Subject: [PATCH] fixed comment and added exception in error message for diagnostics purposes --- .../rascalmpl/core/library/lang/rascalcore/check/Checker.rsc | 2 +- .../rascalmpl/core/library/lang/rascalcore/check/Import.rsc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/rascalmpl/core/library/lang/rascalcore/check/Checker.rsc b/src/org/rascalmpl/core/library/lang/rascalcore/check/Checker.rsc index 7d178db1..08873815 100644 --- a/src/org/rascalmpl/core/library/lang/rascalcore/check/Checker.rsc +++ b/src/org/rascalmpl/core/library/lang/rascalcore/check/Checker.rsc @@ -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() { diff --git a/src/org/rascalmpl/core/library/lang/rascalcore/check/Import.rsc b/src/org/rascalmpl/core/library/lang/rascalcore/check/Import.rsc index ae638699..200071c2 100644 --- a/src/org/rascalmpl/core/library/lang/rascalcore/check/Import.rsc +++ b/src/org/rascalmpl/core/library/lang/rascalcore/check/Import.rsc @@ -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: "); - } catch _: { - throw "Corrupt TPL file "; + } catch value e: { + throw "Corrupt TPL file because of "; } ms.tmodels[qualifiedModuleName] = m1;