final String message = "'" + cmdName + "' command failed.\n" +
(!StringUtil.isEmpty(stderr) ? "stderr: " + stderr + "\n" : "") +
(!StringUtil.isEmpty(stdout) ? "stdout: " + stdout + "\n" : "") +
(exception != null ? "exception: " + exception.getLocalizedMessage() : "");
Loggers.VCS.warn(message);
throw new VcsException(message);
}