mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: add traceback printing for better error handling
This commit is contained in:
parent
a04b9ea053
commit
ad186701d3
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue