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

Show paths of config files when configurations contain errors #3852

Merged
merged 1 commit into from
Jun 10, 2024

Conversation

Kintaro
Copy link
Contributor

@Kintaro Kintaro commented Jun 9, 2024

This addresses issue #3317, where as discussed we want to show the paths to configuration files if they contain errors, to make it easier for the user to locate them.

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

@Kintaro Kintaro requested a review from yuja June 9, 2024 13:26
@Kintaro Kintaro force-pushed the push-pqxulluqzrmw branch from 9358bab to 874868e Compare June 9, 2024 18:07
Copy link
Member

@martinvonz martinvonz left a comment

Choose a reason for hiding this comment

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

Could you add tests if that's not too complicated? It seems like it should be possible.

@Kintaro
Copy link
Contributor Author

Kintaro commented Jun 10, 2024

Sure. I'll add some later.

@Kintaro Kintaro force-pushed the push-pqxulluqzrmw branch from 874868e to 07a0142 Compare June 10, 2024 04:41
@Kintaro
Copy link
Contributor Author

Kintaro commented Jun 10, 2024

I have updated it with a test case

Copy link
Member

@martinvonz martinvonz 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
cli/src/cli_util.rs Outdated Show resolved Hide resolved
This addresses issue jj-vcs#3317, where as discussed we want to show the paths to
configuration files if they contain errors, to make it easier for the user to
locate them.
@Kintaro Kintaro force-pushed the push-pqxulluqzrmw branch from 07a0142 to be74716 Compare June 10, 2024 07:53
@Kintaro
Copy link
Contributor Author

Kintaro commented Jun 10, 2024

Addressed the nit and the error hinting.

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!

@Kintaro Kintaro merged commit 3cd1fe4 into jj-vcs:main Jun 10, 2024
16 checks passed
@ilyagr
Copy link
Contributor

ilyagr commented Jun 10, 2024

Thank you!

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.

4 participants