chore: add comment about printing traceback stack in error handling

This commit is contained in:
Paul Gauthier 2024-11-04 09:05:23 -08:00 committed by Paul Gauthier (aider)
parent 0022c1a67e
commit 5e1be966ed

View file

@ -320,6 +320,7 @@ class InputOutput:
return f.read() return f.read()
except OSError as err: except OSError as err:
self.tool_error(f"{filename}: unable to read: {err}") self.tool_error(f"{filename}: unable to read: {err}")
#ai print the trackback stack!
return return
except FileNotFoundError: except FileNotFoundError:
self.tool_error(f"{filename}: file not found error") self.tool_error(f"{filename}: file not found error")