From 6a17cf4e9c41e40f145374cf74575ab36b9b46a3 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Thu, 5 Sep 2024 21:30:58 -0400 Subject: [PATCH] Fix bug when displaying example errors We were trying to concatenate a list of nets, but "concatenate" expects a list of strings. So we use "stack" instead. --- M2/Macaulay2/m2/installPackage.m2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/M2/Macaulay2/m2/installPackage.m2 b/M2/Macaulay2/m2/installPackage.m2 index 483567d2cf..0db6b1f32e 100644 --- a/M2/Macaulay2/m2/installPackage.m2 +++ b/M2/Macaulay2/m2/installPackage.m2 @@ -770,7 +770,7 @@ installPackage Package := opts -> pkg -> ( verboseLog("making example result files in ", minimizeFilename exampleOutputDir); generateExampleResults(pkg, rawDocumentationCache, exampleDir, exampleOutputDir, verboseLog, pkgopts, opts); - if 0 < numExampleErrors then verboseLog concatenate apply(readDirectory exampleOutputDir, + if 0 < numExampleErrors then verboseLog stack apply(readDirectory exampleOutputDir, file -> if match("\\.errors$", file) then stack { file, concatenate(width file : "*"), getErrors(exampleOutputDir | file)});