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.
  • Loading branch information
d-torrance committed Sep 6, 2024
1 parent 207cf44 commit 017cba2
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 @@ -771,7 +771,7 @@ installPackage Package := opts -> pkg -> (
generateExampleResults(pkg, rawDocumentationCache, exampleDir, exampleOutputDir, verboseLog, pkgopts, opts);

if 0 < numExampleErrors then verboseLog concatenate apply(readDirectory exampleOutputDir,
file -> if match("\\.errors$", file) then stack {
file -> if match("\\.errors$", file) then toString stack {
file, concatenate(width file : "*"), getErrors(exampleOutputDir | file)});

if not opts.IgnoreExampleErrors then checkForErrors pkg;
Expand Down

0 comments on commit 017cba2

Please sign in to comment.