From e0024fa79a5851c4876c4f33890807da6a511394 Mon Sep 17 00:00:00 2001 From: mrg Date: Tue, 6 Apr 2021 12:52:50 -0700 Subject: [PATCH] Add verbosity to error output --- compiler/router/pin_group.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/router/pin_group.py b/compiler/router/pin_group.py index 5f9da465..7a5d8817 100644 --- a/compiler/router/pin_group.py +++ b/compiler/router/pin_group.py @@ -148,8 +148,9 @@ class pin_group: enclosure = self.router.compute_pin_enclosure(ll, ur, ll.z) pin_list.append(enclosure) - debug.check(len(pin_list) > 0, - "Did not find any enclosures.") + if len(pin_list) == 0: + debug.error("Did not find any enclosures for {}".format(self.name)) + self.router.write_debug_gds("pin_enclosure_error.gds") # Now simplify the enclosure list new_pin_list = self.remove_redundant_shapes(pin_list)