-
Notifications
You must be signed in to change notification settings - Fork 331
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
Bugfix/2307 change error message in lakefs setup #2435
Bugfix/2307 change error message in lakefs setup #2435
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just think we need to use the same terminology - setup and not initialized and drop the lakeFS.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Please edit the following to the pr description:
- Fixes Non-descriptive error message while trying to create an Admin user more than once #2307 (this automatically closes the issue when you merge the pr)
- fix description. What was the problem, and what solution you implemented.
Agree with @nopcoder . To understand if setup already happened you are checking whether the metadata manager is already initialized which is an implementation detail. as a user I would want the software to speak the language of the actions I'm taking. |
cmd/lakefs/cmd/setup.go
Outdated
os.Exit(1) | ||
} | ||
if initialized { | ||
fmt.Printf("Setup is already complete.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add new-line or use fmt.Println
Close: #2307
When trying to set up lakeFS more than once, the error message was not descriptive.
I made two changes: