AbstractInspectionCmdlineOptions#validate: more useful message instead of just printing null

GitOrigin-RevId: db86a4bf2e7ede413a406b50c32215c9c2e6ead9
This commit is contained in:
Tagir Valeev
2019-10-09 11:02:23 +00:00
committed by intellij-monorepo-bot
parent 0d70c5334a
commit ad9dd8917e
@@ -80,7 +80,7 @@ public abstract class AbstractInspectionCmdlineOptions implements InspectionTool
if (getDirToInspectProperty() != null) {
final String dirToInspect = determineDirectoryToInspect(projectPath);
if (dirToInspect == null) {
throw new CmdlineArgsValidationException("Directory '" + dirToInspect + "' not found.");
throw new CmdlineArgsValidationException("Directory to inspect for project '" + projectPath + "' not found.");
}
}