Skip to content

[WIP] refactoring pkg/expect#1014

Open
shjala wants to merge 1 commit intolf-edge:masterfrom
shjala:refactor_pkg_expect
Open

[WIP] refactoring pkg/expect#1014
shjala wants to merge 1 commit intolf-edge:masterfrom
shjala:refactor_pkg_expect

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