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

Be more specific when warning the user about missing identity configs #4429

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

Veykril
Copy link
Member

@Veykril Veykril commented Sep 10, 2024

Typoed user.name as user.nane and got confused why my entire user didn't get recognized, warning on each command.

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

@Veykril
Copy link
Member Author

Veykril commented Sep 26, 2024

Any thoughts on this? Feels like a very simple QoL change

Copy link
Contributor

@yuja yuja left a comment

Choose a reason for hiding this comment

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

Thanks!

cli/src/cli_util.rs Outdated Show resolved Hide resolved
Check if only the email or the name are missing in the config and specifically name the missing one, instead of always defaulting to potentially both missing.
@Veykril Veykril enabled auto-merge (rebase) September 27, 2024 14:06
@Veykril Veykril merged commit 72c5bbb into jj-vcs:main Oct 2, 2024
18 checks passed
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