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

Specify which parameter is missing in the error message #2567

Merged
merged 3 commits into from
Jun 7, 2022
Merged

Specify which parameter is missing in the error message #2567

merged 3 commits into from
Jun 7, 2022

Conversation

bendem
Copy link
Contributor

@bendem bendem commented Feb 22, 2022

Environment

Liquibase Version: 4.7.1

Liquibase Integration & Version: maven

Liquibase Extension(s) & Version: N/A

Database Vendor & Version: postgresql

Operating System Type & Version: windows 10

Pull Request Type

  • Bug fix (non-breaking change which fixes an issue.)
  • Enhancement/New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

As seen in a question on stackoverflow, it's kind of unclear that the parameter to use is outputChangeLogFile and not changeLogFile (https://stackoverflow.com/questions/71172130/).

Steps To Reproduce

See SO question.

Actual Behavior

Specify changeLogFile option, get asked to specify changeLogFile option.

Expected/Desired Behavior

Specify changeLogFile option, get asked to specify outputChangeLogFile option.

Screenshots (if appropriate)

N/A

Additional Context

N/A

Fast Track PR Acceptance Checklist:

Need Help?

Come chat with us on our discord channel

As seen in a question on stackoverflow, it's kind of unclear that the parameter to use is outputChangeLogFile and not changeLogFile (https://stackoverflow.com/questions/71172130/).
@nvoxland nvoxland changed the base branch from master to 1_9 June 1, 2022 18:40
@nvoxland nvoxland changed the base branch from 1_9 to master June 1, 2022 18:40
Copy link
Contributor

@nvoxland nvoxland left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! Improving error messages to make life less confusing to users is always great.

I did update the message you suggested slightly to try to simplify it. LMK if you find that less helpful.

Code review and test results:

Things to be aware of

  • I didn't run mvn to see the error message, just reviewed the wording change

Things to worry about

  • Nothing

@nvoxland nvoxland added SafeToBuild Indicates that a particular PR contains changes which are safe to build using GitHub actions and removed autocandidate labels Jun 1, 2022
@github-actions
Copy link

github-actions bot commented Jun 1, 2022

Unit Test Results

  4 524 files  ±0    4 524 suites  ±0   32m 50s ⏱️ ±0s
  4 422 tests ±0    4 204 ✔️  - 4     218 💤 +4  0 ±0 
52 344 runs  ±0  47 332 ✔️  - 4  5 012 💤 +4  0 ±0 

Results for commit d6cc7a9. ± Comparison against base commit c1a67a7.

♻️ This comment has been updated with latest results.

@nvoxland nvoxland requested a review from suryaaki2 June 2, 2022 06:14
@bendem
Copy link
Contributor Author

bendem commented Jun 2, 2022

Looks good to me. I didn't know if it was named without the output prefix somewhere else so I had left both. Since this is maven specific code, your wording is probably even better

@FBurguer FBurguer self-assigned this Jun 7, 2022
@FBurguer
Copy link

FBurguer commented Jun 7, 2022

It looks like the message is correct now.
[ERROR] Failed to execute goal org.liquibase:liquibase-maven-plugin:4.11.0:generateChangeLog (default-cli) on project LiquiPostgreSQL-app: The output changeLogFile must be specified. -> [Help 1]

Test Environment:
OS: Windows 10
Java 11

@nvoxland nvoxland merged commit d2a48a7 into liquibase:master Jun 7, 2022
@bendem bendem deleted the doc/maven-parameter-error branch June 8, 2022 11:51
@kataggart kataggart added this to the NEXT milestone Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DBPostgres IntegrationMaven OSWindows SafeToBuild Indicates that a particular PR contains changes which are safe to build using GitHub actions ver4.7.1
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

5 participants