Better exception message

This commit is contained in:
Joel Thibault 2014-04-08 14:30:11 -04:00
parent b07c0a6b4c
commit 1103fd231a
1 changed files with 4 additions and 1 deletions

View File

@ -166,7 +166,10 @@ public class ProcessController {
}
running.add(this);
} catch (IOException e) {
throw new ReviewedStingException("Unable to start command: " + StringUtils.join(builder.command(), " "));
String message = String.format("Unable to start command: %s\nReason: %s",
StringUtils.join(builder.command(), " "),
e.getMessage());
throw new ReviewedStingException(message);
}
int exitCode;