-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return error tuple when operating on dead process
Most of the functions of the GptAgent module expect to receive a pid of a running GptAgent process as their first argument. Prior to this change, if that pid did not represent a running process (e.g. the GptAgent process has been shut down for any reason), then the function call would result in an unhandled (by this library) exception. This changes the behavior such that we return an error tuple that the calling code can more easily handle.
- Loading branch information
Showing
3 changed files
with
102 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters