Skip to content

Commit f30c846

Browse files
authored
Fix misleading connection string message (#3709)
1 parent 44adae0 commit f30c846

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/configuration/ConfigurationBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,10 +743,10 @@ static void overlayFromEnv(
743743
&& !replacedConnectionString.startsWith("InstrumentationKey=")
744744
&& config.connectionString.equals(replacedConnectionString)) {
745745
throw new FriendlyException(
746-
"Error loading connection string from a file (\""
746+
"Your connection string seems to have a wrong format: \""
747747
+ config.connectionString
748748
+ "\").\n"
749-
+ "Please use this format instead:"
749+
+ "If you want to load the connection string from a file, please use this format:"
750750
+ "\n{ \"connectionString\": \"${file:connection-string-file.txt}\" }\n",
751751
"Learn more about configuration options here: " + CONFIGURATION_OPTIONS_LINK);
752752
}

0 commit comments

Comments
 (0)