Skip to content

Commit 7808450

Browse files
authored
In CommandUtils.java, don't output error message when not needed (#5054)
1 parent 569cc33 commit 7808450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Utils/azuretools-core/src/com/microsoft/azuretools/utils/CommandUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public static String executeCommandAndGetOutput(final CommandLine commandLine, f
103103
executor.setExitValues(null);
104104
try {
105105
executor.execute(commandLine);
106-
if (!mergeErrorStream) {
106+
if (!mergeErrorStream && err.size() > 0) {
107107
logger.log(Level.SEVERE, err.toString());
108108
}
109109
return out.toString();

0 commit comments

Comments
 (0)