diff options
author | Mark Rekveld <mark.rekveld@sonarsource.com> | 2021-01-14 14:07:06 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-01-14 20:30:31 +0000 |
commit | fdb9e5604214fea10568d3798a8475a9302aad52 (patch) | |
tree | 53e2bd4e1af5a1b2d5aecb912fb9e1923e522791 /sonar-scanner-engine/src/main | |
parent | df9f136ff0ebffba8e32b98c100da9923deb6f0a (diff) | |
download | sonarqube-fdb9e5604214fea10568d3798a8475a9302aad52.tar.gz sonarqube-fdb9e5604214fea10568d3798a8475a9302aad52.zip |
SONAR-14340 - ‘Not authorized’ analysis should prompt for a token, not login/password
Diffstat (limited to 'sonar-scanner-engine/src/main')
-rw-r--r-- | sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/DefaultScannerWsClient.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/DefaultScannerWsClient.java b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/DefaultScannerWsClient.java index 74ebf8e17bc..1b39824c988 100644 --- a/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/DefaultScannerWsClient.java +++ b/sonar-scanner-engine/src/main/java/org/sonar/scanner/bootstrap/DefaultScannerWsClient.java @@ -94,8 +94,8 @@ public class DefaultScannerWsClient implements ScannerWsClient { CoreProperties.LOGIN, CoreProperties.PASSWORD)); } // not authenticated - see https://jira.sonarsource.com/browse/SONAR-4048 - throw MessageException.of(format("Not authorized. Analyzing this project requires to be authenticated. " + - "Please provide the values of the properties %s and %s.", CoreProperties.LOGIN, CoreProperties.PASSWORD)); + throw MessageException.of(format("Not authorized. Analyzing this project requires authentication. " + + "Please provide a user token in %s or other credentials in %s and %s.", CoreProperties.LOGIN, CoreProperties.LOGIN, CoreProperties.PASSWORD)); } if (code == HTTP_FORBIDDEN) { |