Skip to content

Commit 9d050dd

Browse files
committed
concatenate better
1 parent ee899e9 commit 9d050dd

File tree

1 file changed

+5
-1
lines changed
  • dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling

1 file changed

+5
-1
lines changed

dd-java-agent/agent-tooling/src/main/java/datadog/trace/agent/tooling/AgentCLI.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ public static void uploadCrash(final String configFile, final String... files) t
9494
storedConfig = readConfig(Config.get(), configPath);
9595
if (storedConfig == null) {
9696
log.error("Unable to parse config file {}", configFile);
97-
error += "Unable to parse config file";
97+
if (error == null) {
98+
error = "Unable to parse config file";
99+
} else {
100+
error += ", Unable to parse config file";
101+
}
98102
}
99103
}
100104
if (storedConfig == null) {

0 commit comments

Comments
 (0)