From ad9dd8917e0ee02684368ee446ae242580c23ad5 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Wed, 9 Oct 2019 17:11:09 +0700 Subject: [PATCH] AbstractInspectionCmdlineOptions#validate: more useful message instead of just printing null GitOrigin-RevId: db86a4bf2e7ede413a406b50c32215c9c2e6ead9 --- .../codeInspection/AbstractInspectionCmdlineOptions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/lang-impl/src/com/intellij/codeInspection/AbstractInspectionCmdlineOptions.java b/platform/lang-impl/src/com/intellij/codeInspection/AbstractInspectionCmdlineOptions.java index e2e9eaac2b91..bc44be5194a7 100644 --- a/platform/lang-impl/src/com/intellij/codeInspection/AbstractInspectionCmdlineOptions.java +++ b/platform/lang-impl/src/com/intellij/codeInspection/AbstractInspectionCmdlineOptions.java @@ -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."); } }