From f4f92e2d533ce0a3937be52a661e8848cfe09ec4 Mon Sep 17 00:00:00 2001 From: Mahrud Sayrafi Date: Wed, 21 Aug 2024 11:31:35 +0200 Subject: [PATCH] fixed RobustPrintMethod to avoid error in toString --- M2/Macaulay2/m2/robust.m2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/M2/Macaulay2/m2/robust.m2 b/M2/Macaulay2/m2/robust.m2 index ee6720e872..8ea24fe3e6 100644 --- a/M2/Macaulay2/m2/robust.m2 +++ b/M2/Macaulay2/m2/robust.m2 @@ -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 -> (