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

Tell user to not report Error Prone issue when AnnotatedPackages option is missing #273

Merged
merged 1 commit into from Dec 14, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -93,10 +93,13 @@ final class ErrorProneCLIFlagsConfig extends AbstractConfig {
ErrorProneCLIFlagsConfig(ErrorProneFlags flags) {
if (!flags.get(FL_ANNOTATED_PACKAGES).isPresent()) {
throw new IllegalStateException(
"Must specify annotated packages, using the "
"DO NOT report an issue to Error Prone for this crash! NullAway configuration is "
+ "incorrect. "
+ "Must specify annotated packages, using the "
+ "-XepOpt:"
+ FL_ANNOTATED_PACKAGES
+ "=[...] flag.");
+ "=[...] flag. If you feel you have gotten this message in error report an issue"
+ " at https://github.com/uber/NullAway/issues.");
}
annotatedPackages = getPackagePattern(getFlagStringSet(flags, FL_ANNOTATED_PACKAGES));
unannotatedSubPackages = getPackagePattern(getFlagStringSet(flags, FL_UNANNOTATED_SUBPACKAGES));
Expand Down