Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] refactoring pkg/expect #1014

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shjala
Copy link
Member

@shjala shjala commented Aug 16, 2024

Return error and let the user handle it the way they want, instead of exiting the program by calling log.Fatal().

Otherwise it makes causes some unexpected situations, for example PodDeploy returns an error but due to call to some functions from expect package, it might cause the program to log.Fatal() exit in the middle of the execution, robbing the caller of a decision on how to handle the error, for example change the app settings and try again.

return error and let the user handle it the way they want, instead of
exiting the program by calling log.Fatal().

Signed-off-by: Shahriyar Jalayeri <[email protected]>
@shjala shjala requested a review from uncleDecart as a code owner August 16, 2024 12:18
@shjala shjala changed the title [wip] refactoring pkg/expect [WIP] refactoring pkg/expect Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant