Skip to content

Commit

Permalink
Fix bug when displaying example errors
Browse files Browse the repository at this point in the history
We were trying to concatenate a list of nets, but "concatenate"
expects a list of strings.  So we use "stack" instead.
  • Loading branch information
d-torrance authored and mahrud committed Sep 11, 2024
1 parent 646d715 commit 6a17cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion M2/Macaulay2/m2/installPackage.m2
Original file line number Diff line number Diff line change
Expand Up @@ -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)});

Expand Down

0 comments on commit 6a17cf4

Please sign in to comment.