More explicit feedback message about how to report errors to developers (#7063)

This commit is contained in:
Graham Neubig 2025-03-02 17:21:07 -05:00 committed by GitHub
parent 62750c07e5
commit 91ad59dc24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -248,8 +248,9 @@ class AgentController:
)
reported = RuntimeError(
'There was an unexpected error while running the agent. Please '
f'report this error to the developers. Your session ID is {self.id}. '
f'Error type: {e.__class__.__name__}'
'report this error to the developers by opening an issue at '
'https://github.com/All-Hands-AI/OpenHands. Your session ID is '
f' {self.id}. Error type: {e.__class__.__name__}'
)
if (
isinstance(e, litellm.AuthenticationError)