]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
SONARPLUGINS-2202 Improve log message
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 12 Sep 2012 10:47:07 +0000 (12:47 +0200)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 12 Sep 2012 10:47:07 +0000 (12:47 +0200)
src/main/java/org/sonar/runner/internal/batch/SonarProjectBuilder.java
src/test/java/org/sonar/runner/internal/batch/SonarProjectBuilderTest.java

index 6af0ed5c0145f07474cbd33d390a1b4b6c119ec0..936815afa468ad4b73428ef6fc465f4f8e269ce0 100644 (file)
@@ -395,8 +395,8 @@ public final class SonarProjectBuilder {
     for (String path : sourceDirs) {
       File sourceFolder = getFileFromPath(path, baseDir);
       if (!sourceFolder.isDirectory()) {
-        throw new RunnerException("The source folder '" + path + "' does not exist for '" + projectKey +
-          "' project/module (base directory = " + baseDir.getAbsolutePath() + ")");
+        throw new RunnerException("The folder '" + path + "' does not exist for '" + projectKey +
+          "' project (base directory = " + baseDir.getAbsolutePath() + ")");
       }
     }
 
index d4b4cb5321ee3f62630879e68e68bc92549c656f..aa8209fb769b377983817888bf6aaeef8980f892 100644 (file)
@@ -69,7 +69,7 @@ public class SonarProjectBuilderTest {
   @Test
   public void shouldFailIfUnexistingSourceDirectory() throws IOException {
     thrown.expect(RunnerException.class);
-    thrown.expectMessage("The source folder 'unexisting-source-dir' does not exist for 'com.foo.project' project/module (base directory = "
+    thrown.expectMessage("The folder 'unexisting-source-dir' does not exist for 'com.foo.project' project (base directory = "
       + TestUtils.getResource(this.getClass(), "simple-project-with-unexisting-source-dir") + ")");
 
     loadProjectDefinition("simple-project-with-unexisting-source-dir");