Tools: include exception in GDB extension errors

This commit is contained in:
Campbell Barton
2024-11-06 10:49:46 +11:00
parent 326b65f27c
commit 9a4e3fb163

View File

@@ -436,8 +436,8 @@ class ErrorHandlingPrinter:
try:
with ensure_unwind_on_signal():
return self.printer.to_string()
except Exception as e:
return "Error"
except Exception as ex:
return f"Error: {ex!s}"
def children(self):
try: