Skip to content

Commit

Permalink
fixed RobustPrintMethod to avoid error in toString
Browse files Browse the repository at this point in the history
  • Loading branch information
mahrud committed Aug 22, 2024
1 parent 6d2b431 commit f4f92e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions M2/Macaulay2/m2/robust.m2
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ silentRobustStringWithClass = (wid,sec,y) -> (
concatenate(part1, part2));

-- mainly called by KeyNotFound in hashtables.dd to print missing key errors
Thing.RobustPrintMethod = (msg, obj) -> toString stack { msg | ":",
horizontalJoin("\t", silentRobustNetWithClass(60, 5, 3, obj)) }
Thing.RobustPrintMethod = (msg, obj) -> try toString stack { msg | ":",
horizontalJoin("\t", silentRobustNetWithClass(60, 5, 3, obj)) } else msg

hush := false
scan(flexibleBinaryOperators, op -> (
Expand Down

0 comments on commit f4f92e2

Please sign in to comment.