From: Julien HENRY Date: Tue, 18 Jun 2013 07:42:38 +0000 (+0200) Subject: SONARPLUGINS-2982 Display command in case of execution error in ForkedRunner X-Git-Tag: 2.5-rc1~137 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e1e57658b40bd0b2d9bf2026c68be2490048a662;p=sonar-scanner-cli.git SONARPLUGINS-2982 Display command in case of execution error in ForkedRunner --- diff --git a/sonar-runner-api/src/main/java/org/sonar/runner/api/ForkedRunner.java b/sonar-runner-api/src/main/java/org/sonar/runner/api/ForkedRunner.java index 05c38bb..90b2a85 100644 --- a/sonar-runner-api/src/main/java/org/sonar/runner/api/ForkedRunner.java +++ b/sonar-runner-api/src/main/java/org/sonar/runner/api/ForkedRunner.java @@ -178,7 +178,7 @@ public class ForkedRunner extends Runner { } 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); } }