From 55c18b40f4787830bdafaa883be2d072d3d34d30 Mon Sep 17 00:00:00 2001 From: paulklint Date: Tue, 12 Mar 2024 09:45:25 +0100 Subject: [PATCH] PathConfig validator now gives more precise error message --- .../core/library/lang/rascalcore/check/Checker.rsc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 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 7bc695f2..698be0eb 100644 --- a/src/org/rascalmpl/core/library/lang/rascalcore/check/Checker.rsc +++ b/src/org/rascalmpl/core/library/lang/rascalcore/check/Checker.rsc @@ -179,24 +179,24 @@ list[Message] validatePathConfigForCompiler(PathConfig pcfg, loc mloc) { if(!exists(pcfg.bin)) { try { mkDirectory(pcfg.resources); - } catch _: { - msgs += error("PathConfig `bin`: does not exist", pcfg.bin); + } catch e: { + msgs += error("PathConfig `bin`: ", pcfg.bin); } } if(!exists(pcfg.resources)) { try { mkDirectory(pcfg.resources); - } catch _: { - msgs += error("PathConfig `resources`: does not exist", pcfg.resources); + } catch e: { + msgs += error("PathConfig `resources`: ", pcfg.resources); } } if(!exists(pcfg.generatedSources)) try { mkDirectory(pcfg.generatedSources); - } catch _: { - msgs += error("PathConfig `generatedSources`: does not exist", pcfg.generatedSources); + } catch e: { + msgs += error("PathConfig `generatedSources`: ", pcfg.generatedSources); } return msgs;