feat: add traceback printing for better error handling

This commit is contained in:
Paul Gauthier (aider) 2024-12-01 09:40:20 -08:00
parent a04b9ea053
commit ad186701d3

View file

@ -478,8 +478,9 @@ class InputOutput:
except EOFError: except EOFError:
return "" return ""
except Exception as err: except Exception as err:
import traceback
self.tool_error(str(err)) self.tool_error(str(err))
# print the traceback ai! self.tool_error(traceback.format_exc())
return "" return ""
except UnicodeEncodeError as err: except UnicodeEncodeError as err:
self.tool_error(str(err)) self.tool_error(str(err))