Skip to content

Commit 4c6c3ea

Browse files
SCANNERAPI-185 - Changed Locale.
1 parent 13cbd57 commit 4c6c3ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/main/java/org/sonarsource/scanner/api/internal/ServerConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private ResponseBody callUrl(String url) throws IOException {
117117
}
118118
return response.body();
119119
} catch (Exception e) {
120-
logger.error(format("%s server [%s] can not be reached", url.toLowerCase(Locale.getDefault()).contains("sonarcloud") ? "SonarCloud" : "SonarQube", baseUrlWithoutTrailingSlash));
120+
logger.error(format("%s server [%s] can not be reached", url.toLowerCase(Locale.ENGLISH).contains("sonarcloud") ? "SonarCloud" : "SonarQube", baseUrlWithoutTrailingSlash));
121121
throw e;
122122
}
123123
}

0 commit comments

Comments
 (0)