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

Error message on missing required input param prompts user to "Please report this issue" #134

Open
bigdaz opened this issue Apr 16, 2024 · 0 comments

Comments

@bigdaz
Copy link
Member

bigdaz commented Apr 16, 2024

When using the plugin without the correct environment variables set, the resulting exception looks like:

Caused by: org.gradle.api.GradleException: The GitHubDependencyGraphPlugin plugin encountered errors while writing the dependency snapshot json file. 
Please report this issue at: https://github.com/gradle/github-dependency-graph-gradle-plugin/issues
at org.gradle.github.dependencygraph.internal.DependencyExtractor.close(DependencyExtractor.kt:271)
at org.gradle.api.services.internal.RegisteredBuildServiceProvider.lambda$maybeStop$1(RegisteredBuildServiceProvider.java:168)
... 132 more
Caused by: java.lang.IllegalStateException: The configuration parameter 'GITHUB_JOB_CORRELATOR' must be set: set an environment variable, or use '-DGITHUB_JOB_CORRELATOR=value' on the command-line.

Since this is a user configuration error, the exception should not prompt users to report an issue.

@bigdaz bigdaz changed the title Invalid configuration error prompts user to "Please report this issue" Error message on missing required input param prompts user to "Please report this issue" Apr 16, 2024
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

No branches or pull requests

1 participant