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

handle error from spinner #1301

Merged
merged 2 commits into from
Dec 1, 2023

Conversation

nluaces
Copy link
Member

@nluaces nluaces commented Dec 1, 2023

No description provided.

@nluaces nluaces self-assigned this Dec 1, 2023
@nluaces nluaces requested a review from fgiorgetti December 1, 2023 14:51
@@ -115,7 +114,7 @@ func (s *SkupperKubeSite) Create(cmd *cobra.Command, args []string) error {
})

if err != nil {
return err
fmt.Println("Skupper status is not loaded yet, it will be available in a few seconds")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nluaces This approach of displaying a message here, instead of returning an error, makes sense to me.
I am not sure if the message should say "it will be available in a few seconds".
Thoughts: @grs @c-kruse @ajssmith ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree; I would leave out that part.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fgiorgetti how about just "Skupper status is not loaded yet"?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks better to me. Thank you @nluaces.

@nluaces nluaces requested review from grs, ajssmith and c-kruse December 1, 2023 16:57
@nluaces nluaces merged commit e3bd1d4 into skupperproject:main Dec 1, 2023
1 check passed
@nluaces nluaces deleted the remove-status-error-after-init branch December 1, 2023 18:18
nluaces added a commit that referenced this pull request Dec 6, 2023
* handle error from spinner
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.

3 participants