]> source.dussan.org Git - sonar-scanner-cli.git/commitdiff
SONARPLUGINS-2982 Display command in case of execution error in ForkedRunner
authorJulien HENRY <julien.henry@sonarsource.com>
Tue, 18 Jun 2013 07:42:38 +0000 (09:42 +0200)
committerJulien HENRY <julien.henry@sonarsource.com>
Wed, 19 Jun 2013 10:21:47 +0000 (12:21 +0200)
sonar-runner-api/src/main/java/org/sonar/runner/api/ForkedRunner.java

index 05c38bb36d580c2b2f841e96af82885a8b05934f..90b2a85c6a540803169385e1630843c4bcc5a030 100644 (file)
@@ -178,7 +178,7 @@ public class ForkedRunner extends Runner<ForkedRunner> {
     }
     int status = commandExecutor.execute(forkCommand.command, stdOut, stdErr, ONE_DAY_IN_MILLISECONDS);
     if (status != 0) {
-      throw new IllegalStateException("Error status: " + status);
+      throw new IllegalStateException("Error status [command: " + forkCommand.command + "]: " + status);
     }
   }